Skip to content

Commit

Permalink
fix: windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrix126 committed Nov 19, 2024
1 parent 2a8d013 commit 1377ee6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/eframe_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ use std::sync::{Arc, Mutex};
use super::App;
#[cfg(target_os = "windows")]
use crate::errors::{process_running, ErrorButtons, ErrorFerris};
#[cfg(target_os = "windows")]
use crate::helper::ProcessName;
use crate::helper::{Helper, ProcessName, ProcessState};
use crate::inits::init_text_styles;
use crate::{NODE_MIDDLE, P2POOL_MIDDLE, SECOND, XMRIG_MIDDLE, XMRIG_PROXY_MIDDLE, XVB_MIDDLE};
Expand Down Expand Up @@ -41,7 +39,7 @@ impl eframe::App for App {
#[cfg(target_os = "windows")]
if !self.xmrig_outside_warning_acknowledge
&& 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.xmrig_outside_warning_acknowledge = true;
Expand Down

0 comments on commit 1377ee6

Please sign in to comment.