Adapt to upstream app.settings changes
This commit is contained in:
@@ -154,7 +154,7 @@ class UrlImagePreviewPlugin(GajimPlugin):
|
||||
if GLib.mkdir_with_parents(str(self._thumb_dir), 0o700) != 0:
|
||||
log.error('Failed to create: %s', self._thumb_dir)
|
||||
|
||||
if app.config.get('use_kib_mib'):
|
||||
if app.settings.get('use_kib_mib'):
|
||||
self._units = GLib.FormatSizeFlags.IEC_UNITS
|
||||
else:
|
||||
self._units = GLib.FormatSizeFlags.DEFAULT
|
||||
@@ -698,7 +698,7 @@ class UrlImagePreviewPlugin(GajimPlugin):
|
||||
return
|
||||
|
||||
FileSaveDialog(on_ok,
|
||||
path=app.config.get('last_save_dir'),
|
||||
path=app.settings.get('last_save_dir'),
|
||||
file_name=preview.filename,
|
||||
transient_for=app.app.get_active_window())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user