@@ -50,7 +50,8 @@ namespace Tuba {
5050 public signal void refresh_featured ();
5151 public signal void relationship_invalidated (API . Relationship new_relationship);
5252 public signal void remove_user_id (string user_id);
53- public signal void toast (string title, uint timeout = 5 );
53+ // TODO: maybe just pass Adw.Toasts at this point
54+ public signal void toast (string title, uint timeout = 5 , string ? action_name = null , GLib . Variant ? action_target = null , string ? action_label = null );
5455
5556 #if DEV_MODE
5657 public signal void dev_new_post (Json . Node node);
@@ -94,7 +95,8 @@ namespace Tuba {
9495 { " open-scheduled-posts" , open_scheduled_posts },
9596 { " open-draft-posts" , open_draft_posts },
9697 { " open-admin-dashboard" , open_admin_dashboard },
97- { " open-last-fediwrapped" , open_last_fediwrapped }
98+ { " open-last-fediwrapped" , open_last_fediwrapped },
99+ { " open-containing-folder" , open_containing_folder, " s" }
98100 };
99101
100102 #if DEV_MODE
@@ -547,6 +549,11 @@ namespace Tuba {
547549 accounts. active. open_latest_wrapped ();
548550 }
549551
552+ public void open_containing_folder (GLib . SimpleAction action, GLib . Variant ? value ) {
553+ if (value == null ) return ;
554+ Utils . Host . open_containing_folder. begin (value . get_string ());
555+ }
556+
550557 private void close_sidebar () {
551558 var split_view = app. main_window. split_view;
552559 if (split_view. collapsed)
0 commit comments