Fix parser
This commit is contained in:
commit
101188ce2e
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
/build
|
/build
|
||||||
/yggtk
|
/yggtk
|
||||||
|
yggdrasil.conf
|
||||||
*\#*
|
*\#*
|
||||||
|
@ -18,13 +18,11 @@
|
|||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkSwitch" id="status">
|
<object class="GtkSwitch" id="status">
|
||||||
<property name="width_request">100</property>
|
|
||||||
<property name="height_request">35</property>
|
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="x">250</property>
|
<property name="x">275</property>
|
||||||
<property name="y">80</property>
|
<property name="y">80</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
@ -98,7 +96,6 @@
|
|||||||
<object class="GtkCheckButton" id="portable">
|
<object class="GtkCheckButton" id="portable">
|
||||||
<property name="label" translatable="yes">Portable</property>
|
<property name="label" translatable="yes">Portable</property>
|
||||||
<property name="height_request">35</property>
|
<property name="height_request">35</property>
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="receives_default">False</property>
|
<property name="receives_default">False</property>
|
||||||
<property name="draw_indicator">True</property>
|
<property name="draw_indicator">True</property>
|
||||||
|
@ -67,8 +67,16 @@ int main (string[] args) {
|
|||||||
|
|
||||||
ip.notify["text"].connect (() => {
|
ip.notify["text"].connect (() => {
|
||||||
|
|
||||||
|
if (ip.text != "") {
|
||||||
|
|
||||||
browse.label = "OK";
|
browse.label = "OK";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
browse.label = "Browse";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
string yggconf;
|
string yggconf;
|
||||||
@ -82,13 +90,15 @@ int main (string[] args) {
|
|||||||
|
|
||||||
} else {
|
} 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 ();
|
Gtk.main ();
|
||||||
|
|
||||||
} catch (Error e) {
|
} catch (Error e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user