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,7 +224,10 @@ 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, "");
|
||||
utils::kill_child_processes(false);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue