diff --git a/CHANGES.md b/CHANGES.md index d510155..b3460e1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/fotokilof/ini_save.py b/fotokilof/ini_save.py index eda0c7c..c6a3add 100644 --- a/fotokilof/ini_save.py +++ b/fotokilof/ini_save.py @@ -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'])) diff --git a/fotokilof/preview.py b/fotokilof/preview.py index 4050e0c..e6a6efd 100644 --- a/fotokilof/preview.py +++ b/fotokilof/preview.py @@ -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)) @@ -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 diff --git a/fotokilof/version.py b/fotokilof/version.py index dea2140..3e8526b 100644 --- a/fotokilof/version.py +++ b/fotokilof/version.py @@ -22,7 +22,7 @@ THE SOFTWARE. """ -__version__ = "4.4.5" +__version__ = "4.4.6" __author__ = "Tomasz Ɓuczak" __email__ = "tlu@team-tl.pl" __appname__ = "FotoKilof"