Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
7508f8b7 by wurstsalat at 2022-08-03T14:30:48+02:00
fix: Preview: Store last_save_dir with Save As

- - - - -


1 changed file:

- gajim/gtk/preview.py


Changes:

=====================================
gajim/gtk/preview.py
=====================================
@@ -267,6 +267,9 @@ def _on_ok(target: str) -> None:
                     transient_for=app.app.get_active_window())
                 return
             shutil.copyfile(str(self._preview.orig_path), target_path)
+            file_dir = os.path.dirname(target_path)
+            if file_dir:
+                app.settings.set('last_save_dir', file_dir)
 
         if not self._preview.orig_exists:
             app.preview_manager.download_content(self._preview, force=True)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7508f8b7f3415c42e3badc9b259326790a94eb85

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7508f8b7f3415c42e3badc9b259326790a94eb85
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to