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


Commits:
1d488f0d by wurstsalat at 2025-10-30T15:38:24+01:00
imprv: Display toast with 'Open Folder' button after saving a file

Fixes #12511

- - - - -


1 changed file:

- gajim/gtk/application.py


Changes:

=====================================
gajim/gtk/application.py
=====================================
@@ -881,7 +881,6 @@ def _on_response() -> None:
         )
 
     def _on_save_file_as(self, _action: Gio.SimpleAction, param: GLib.Variant) 
-> None:
-
         orig_path = Path(param.get_string())
 
         def _on_save_finished(
@@ -938,6 +937,16 @@ def _on_save_finished(
 
             app.settings.set("last_save_dir", str(target_path.parent))
 
+            app.window.show_toast(
+                Adw.Toast(
+                    title=_("File saved"),
+                    timeout=5,
+                    button_label=_("Open Folder"),
+                    action_name="app.open-folder",
+                    action_target=GLib.Variant("s", str(target_path)),
+                )
+            )
+
         gfile = None
         last_dir = app.settings.get("last_save_dir")
         if last_dir:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/1d488f0de51a7c8432d274d89388a7f84f3312c9

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


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to