mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
show connection page only on socket info is available
This commit is contained in:
parent
0b103c795e
commit
6443105986
1 changed files with 10 additions and 9 deletions
|
|
@ -95,12 +95,13 @@ impl Dialog for PreferencesDialog {
|
|||
} // @TODO header size, total size, etc.
|
||||
p
|
||||
});
|
||||
d.add(&{
|
||||
let p = PreferencesPage::builder()
|
||||
.title("Connection")
|
||||
.icon_name("network-transmit-receive")
|
||||
.build();
|
||||
if let Some(ref socket) = info.socket {
|
||||
if let Some(ref socket) = info.socket {
|
||||
d.add(&{
|
||||
let p = PreferencesPage::builder()
|
||||
.title("Connection")
|
||||
.icon_name("network-transmit-receive")
|
||||
.build();
|
||||
|
||||
use gtk::{
|
||||
gio::{SocketAddress, SocketFamily},
|
||||
prelude::{SocketAddressExt, SocketConnectableExt},
|
||||
|
|
@ -172,9 +173,9 @@ impl Dialog for PreferencesDialog {
|
|||
}
|
||||
g
|
||||
});
|
||||
}
|
||||
p
|
||||
});
|
||||
p
|
||||
});
|
||||
}
|
||||
if info.redirect.is_some() {
|
||||
d.add(&{
|
||||
let g = PreferencesGroup::new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue