File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -15,23 +15,6 @@ public void main () {
1515 });
1616
1717 var button_advanced = workbench. builder. get_object(" button_advanced" ) as Gtk . Button ;
18- button_advanced. clicked. connect(() = > {
19- string message_id = " 42" ;
20- var advanced_toast = new Adw .Toast (" Message sent" ) {
21- button_label = " Undo" ,
22- action_name = " win.undo" ,
23- action_target = new GLib .Variant .string (message_id),
24- priority = Adw . ToastPriority . HIGH ,
25- };
26- overlay. add_toast (advanced_toast);
27- });
28-
29- var action_console = new SimpleAction (" undo" , new GLib .VariantType (" s" ));
30- action_console. activate. connect ((self, target) = > {
31- string val = target. get_string ();
32- stdout. printf (" undo %s " , val);
33- });
34-
35- workbench. application. add_action (action_console);
18+ button_advanced. sensitive = false ;
3619}
3720
You can’t perform that action at this time.
0 commit comments