🧹 cleanup
This commit is contained in:
parent
a5c451c09e
commit
b4adc46487
|
@ -474,7 +474,7 @@ fn create_connections_section() -> gtk::Box {
|
||||||
};
|
};
|
||||||
let combo_servers = {
|
let combo_servers = {
|
||||||
let store = gtk::ListStore::new(&[String::static_type()]);
|
let store = gtk::ListStore::new(&[String::static_type()]);
|
||||||
for dns_server in G_DNS_SERVERS.keys().into_iter() {
|
for dns_server in G_DNS_SERVERS.keys() {
|
||||||
store.set(&store.append(), &[(0, dns_server)]);
|
store.set(&store.append(), &[(0, dns_server)]);
|
||||||
}
|
}
|
||||||
utils::create_combo_with_model(&store)
|
utils::create_combo_with_model(&store)
|
||||||
|
@ -515,7 +515,6 @@ fn create_connections_section() -> gtk::Box {
|
||||||
};
|
};
|
||||||
let server_addr = G_DNS_SERVERS.get(&server_name).unwrap();
|
let server_addr = G_DNS_SERVERS.get(&server_name).unwrap();
|
||||||
std::thread::spawn(move || {
|
std::thread::spawn(move || {
|
||||||
println!("conn_name := {conn_name:?}; server_addr := {server_addr:?}");
|
|
||||||
let status_code = Exec::cmd("/sbin/pkexec")
|
let status_code = Exec::cmd("/sbin/pkexec")
|
||||||
.arg("bash")
|
.arg("bash")
|
||||||
.arg("-c")
|
.arg("-c")
|
||||||
|
|
Loading…
Reference in New Issue