Skip to content

Commit 145f37c

Browse files
committed
Removed non-working section from Toasts demo.
1 parent 2df3730 commit 145f37c

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/Library/demos/Toasts/main.vala

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)