Skip to content

Commit

Permalink
4.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
TeaM-TL committed Feb 28, 2024
1 parent 6756257 commit a8f8c03
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 2024

4.4.6 fix save settings

4.4.5 checking new version of FotoKilof

4.4.4 logging in proper way
Expand Down
2 changes: 1 addition & 1 deletion fotokilof/ini_save.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def save(ini_data):
config.set(main['section'], 'preview_orig', main['preview_orig'])
config.set(main['section'], 'preview_new', main['preview_new'])
config.set(main['section'], 'log_level', main['log_level'])
config.set(main['section'], 'check_version', main['check_version'])
config.set(main['section'], 'check_version', str(main['check_version']))
# resize
config.add_section(resize['section'])
config.set(resize['section'], 'on', str(resize['on']))
Expand Down
14 changes: 7 additions & 7 deletions fotokilof/preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ def preview_wand(file_in, size, coord=""):
- width and height
"""

result = {'filename': None,
'size': '0',
'width': '0',
'height': '0',
'preview_width': '0',
'preview_height': '0'}

if file_in is not None:
if os.path.isfile(file_in):
filesize = common.humansize(os.path.getsize(file_in))
Expand Down Expand Up @@ -87,13 +94,6 @@ def preview_wand(file_in, size, coord=""):
'preview_width': preview_width,
'preview_height': preview_height
}
else:
result = {'filename': None,
'size': '0',
'width': '0',
'height': '0',
'preview_width': '0',
'preview_height': '0'}

return result

Expand Down
2 changes: 1 addition & 1 deletion fotokilof/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
THE SOFTWARE.
"""

__version__ = "4.4.5"
__version__ = "4.4.6"
__author__ = "Tomasz Łuczak"
__email__ = "[email protected]"
__appname__ = "FotoKilof"
Expand Down

0 comments on commit a8f8c03

Please sign in to comment.