mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 14:49:21 +00:00
fix: windows build
This commit is contained in:
parent
2a8d013622
commit
1377ee68f4
1 changed files with 1 additions and 3 deletions
|
@ -3,8 +3,6 @@ use std::sync::{Arc, Mutex};
|
||||||
use super::App;
|
use super::App;
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
use crate::errors::{process_running, ErrorButtons, ErrorFerris};
|
use crate::errors::{process_running, ErrorButtons, ErrorFerris};
|
||||||
#[cfg(target_os = "windows")]
|
|
||||||
use crate::helper::ProcessName;
|
|
||||||
use crate::helper::{Helper, ProcessName, ProcessState};
|
use crate::helper::{Helper, ProcessName, ProcessState};
|
||||||
use crate::inits::init_text_styles;
|
use crate::inits::init_text_styles;
|
||||||
use crate::{NODE_MIDDLE, P2POOL_MIDDLE, SECOND, XMRIG_MIDDLE, XMRIG_PROXY_MIDDLE, XVB_MIDDLE};
|
use crate::{NODE_MIDDLE, P2POOL_MIDDLE, SECOND, XMRIG_MIDDLE, XMRIG_PROXY_MIDDLE, XVB_MIDDLE};
|
||||||
|
@ -41,7 +39,7 @@ impl eframe::App for App {
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
if !self.xmrig_outside_warning_acknowledge
|
if !self.xmrig_outside_warning_acknowledge
|
||||||
&& process_running(ProcessName::Xmrig)
|
&& process_running(ProcessName::Xmrig)
|
||||||
&& !xmrig_is_alive
|
&& !process_states.find(ProcessName::Xmrig).alive
|
||||||
{
|
{
|
||||||
self.error_state.set("An instance of xmrig is running outside of Gupaxx.\nThis is not supported and could lead to crashes on this platform.\nPlease stop your local instance and start xmrig from Gupaxx Xmrig tab.", ErrorFerris::Error, ErrorButtons::Okay);
|
self.error_state.set("An instance of xmrig is running outside of Gupaxx.\nThis is not supported and could lead to crashes on this platform.\nPlease stop your local instance and start xmrig from Gupaxx Xmrig tab.", ErrorFerris::Error, ErrorButtons::Okay);
|
||||||
self.xmrig_outside_warning_acknowledge = true;
|
self.xmrig_outside_warning_acknowledge = true;
|
||||||
|
|
Loading…
Reference in a new issue