File tree Expand file tree Collapse file tree 2 files changed +28
-8
lines changed
Expand file tree Collapse file tree 2 files changed +28
-8
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,26 @@ template $NotifyWindow : Adw.ApplicationWindow {
7474 Adw.StatusPage welcome_view {
7575 title: "Notify";
7676 description: "Subscribe to one topic and start listening for notifications";
77- child: Gtk.Button {
78- label: "Subscribe To Topic";
79- clicked => $show_add_topic() swapped;
80- halign: center;
81- styles [
82- "suggested-action",
83- "pill"
84- ]
77+ child: Gtk.Box {
78+ orientation: vertical;
79+ spacing: 8;
80+ Gtk.Button {
81+ label: "Subscribe To Topic";
82+ clicked => $show_add_topic() swapped;
83+ halign: center;
84+ styles [
85+ "suggested-action",
86+ "pill"
87+ ]
88+ }
89+ Gtk.Button {
90+ label: "Discover Integrations";
91+ clicked => $discover_integrations() swapped;
92+ halign: center;
93+ styles [
94+ "pill"
95+ ]
96+ }
8597 };
8698 }
8799 ScrolledWindow list_view {
Original file line number Diff line number Diff line change @@ -139,6 +139,14 @@ mod imp {
139139 None
140140 } ) ;
141141 }
142+ #[ template_callback]
143+ fn discover_integrations ( & self , _btn : & gtk:: Button ) {
144+ gtk:: UriLauncher :: new ( "https://docs.ntfy.sh/integrations/" ) . launch (
145+ Some ( & self . obj ( ) . clone ( ) ) ,
146+ gio:: Cancellable :: NONE ,
147+ |_| { } ,
148+ ) ;
149+ }
142150 }
143151
144152 #[ glib:: object_subclass]
You can’t perform that action at this time.
0 commit comments