Skip to content

Commit 9638d57

Browse files
committed
fix: use a different registry key when in debug mode
1 parent fc273e4 commit 9638d57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/host.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ use winit::event_loop::EventLoopProxy;
77

88
use crate::app::AppMessage;
99

10+
#[cfg(debug_assertions)]
11+
const APP_REG_KEY: &str = "SOFTWARE\\amrbashir\\komorebi-switcher-debug";
12+
#[cfg(not(debug_assertions))]
1013
const APP_REG_KEY: &str = "SOFTWARE\\amrbashir\\komorebi-switcher";
11-
const WINDOW_POS_X_KEY: &str = "window-pos-x";
1214

15+
const WINDOW_POS_X_KEY: &str = "window-pos-x";
1316
const WINDOW_POS_Y_KEY: &str = "window-pos-y";
1417

1518
struct WndProcUserData {

0 commit comments

Comments
 (0)