Fix parser
This commit is contained in:
commit
101188ce2e
3 changed files with 15 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue