diff --git a/.gitignore b/.gitignore index 0ba3e82..0658360 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /build /yggtk +yggdrasil.conf *\#* diff --git a/data/ui/main.ui b/data/ui/main.ui index fa0fe48..8c56942 100644 --- a/data/ui/main.ui +++ b/data/ui/main.ui @@ -18,13 +18,11 @@ False - 100 - 35 True True - 250 + 275 80 @@ -98,7 +96,6 @@ Portable 35 - True True False True diff --git a/src/main.vala b/src/main.vala index 19fd499..4c53121 100644 --- a/src/main.vala +++ b/src/main.vala @@ -67,7 +67,15 @@ int main (string[] args) { ip.notify["text"].connect (() => { - browse.label = "OK"; + if (ip.text != "") { + + browse.label = "OK"; + + } else { + + browse.label = "Browse"; + + } }); @@ -82,13 +90,15 @@ int main (string[] args) { } else { - browse.label = "Soon"; + Process.spawn_command_line_sync ( + "xdg-open https://github.com/yggdrasil-network/public-peers" + ); } }); - window.show_all (); + window.show (); Gtk.main (); } catch (Error e) {