Skip to content

Commit c2ddae6

Browse files
committed
fix: Window "Choose Application" prompt at start (MacOS) #181
1 parent a12dc18 commit c2ddae6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/helper/notification.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ impl Helper {
2020
#[inline(never)]
2121
// The "frontend" function that parses the arguments, and spawns either the [Simple] or [Advanced] Node watchdog thread.
2222
pub fn start_notifications(helper: &Arc<Mutex<Self>>) {
23+
#[cfg(target_os = "macos")]
24+
let _ = notify_rust::set_application("com.github.cyrix126.gupax");
25+
2326
let process_node = Arc::clone(&helper.lock().unwrap().node);
2427
let process_p2pool = Arc::clone(&helper.lock().unwrap().p2pool);
2528
let process_xmrig = Arc::clone(&helper.lock().unwrap().xmrig);

0 commit comments

Comments
 (0)