|
|
|
@ -83,6 +83,27 @@ impl eframe::App for App {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
// Tor
|
|
|
|
|
if self.tor_required {
|
|
|
|
|
if self.tor_started {
|
|
|
|
|
ui.label(
|
|
|
|
|
egui::RichText::new(
|
|
|
|
|
format!(
|
|
|
|
|
"Tor Started: {} Tor Connected: {} Proxy Up: {}",
|
|
|
|
|
show_boolmoji(self.tor_started),
|
|
|
|
|
show_boolmoji(self.tor_connected),
|
|
|
|
|
show_boolmoji(self.tor_connected)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
if ui.button("Connect to the Tor network").clicked() {
|
|
|
|
|
let _t: std::thread::JoinHandle<Result<u8, libtorError>> = GuiTor::start_tor();
|
|
|
|
|
self.tor_started = true;
|
|
|
|
|
self.tor_connected = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
ui.separator();
|
|
|
|
|
|
|
|
|
|
// WOW!Radio
|
|
|
|
@ -167,28 +188,6 @@ impl eframe::App for App {
|
|
|
|
|
ui.separator();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Tor
|
|
|
|
|
if self.tor_required {
|
|
|
|
|
if self.tor_started {
|
|
|
|
|
ui.label(
|
|
|
|
|
egui::RichText::new(
|
|
|
|
|
format!(
|
|
|
|
|
"Tor Started: {} Tor Connected: {} Proxy Up: {}",
|
|
|
|
|
show_boolmoji(self.tor_started),
|
|
|
|
|
show_boolmoji(self.tor_connected),
|
|
|
|
|
show_boolmoji(self.tor_connected)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
if ui.button("Connect to the Tor network").clicked() {
|
|
|
|
|
let _t: std::thread::JoinHandle<Result<u8, libtorError>> = GuiTor::start_tor();
|
|
|
|
|
self.tor_started = true;
|
|
|
|
|
self.tor_connected = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IRC
|
|
|
|
|
if self.show_irc && ! self.irc_connected {
|
|
|
|
|
self.irc_stream = self.irc.run();
|
|
|
|
|