mirror of
https://github.com/creating2morrow/neveko.git
synced 2024-12-22 19:49:24 +00:00
add env variable for gui dev bg services
This commit is contained in:
parent
5398a56568
commit
a2f8041f59
2 changed files with 6 additions and 2 deletions
|
@ -19,5 +19,6 @@ pub const ADD_CONTACT_TIMEOUT_SECS: u64 = 0x5A;
|
|||
pub const START_CORE_TIMEOUT_SECS: u64 = 0x79;
|
||||
/// bytes in a a GB for calculating space on home page
|
||||
pub const BYTES_IN_GB: u64 = 1000000000;
|
||||
|
||||
/// Useful flag to keep services running in background
|
||||
pub const NEVEKO_DEV_BACKGROUND: &str = "NEVEKO_DEV_BACKGROUND";
|
||||
pub use wrap_app::WrapApp;
|
||||
|
|
|
@ -224,9 +224,12 @@ impl eframe::App for WrapApp {
|
|||
fn on_exit(&mut self, _gl: Option<&glow::Context>) {
|
||||
// sanity check that wallet password is no longer in user environment
|
||||
std::env::set_var(neveko_core::MONERO_WALLET_PASSWORD, "");
|
||||
let is_bg = std::env::var(crate::NEVEKO_DEV_BACKGROUND).unwrap_or(String::from("0"));
|
||||
if is_bg != String::from("1") {
|
||||
utils::kill_child_processes(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl WrapApp {
|
||||
fn show_selected_app(&mut self, ctx: &egui::Context, frame: &mut eframe::Frame) {
|
||||
|
|
Loading…
Reference in a new issue