Skip to content

Commit 4284ad7

Browse files
CLARATIONse2crid
andauthored
fix: crash on launch on earlier macOS versions (#154)
* fix: remove macOS activation toggle * fix: immediately make this visible --------- Co-authored-by: se2crid <151872490+se2crid@users.noreply.github.com>
1 parent 59d7f9d commit 4284ad7

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

apps/plumeimpactor/src/macos_app.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ pub(crate) fn set_main_window_visible(visible: bool) {
2424
if !app.setActivationPolicy(policy) {
2525
log::warn!("Failed to switch macOS activation policy");
2626
}
27-
28-
if visible {
29-
app.activate();
30-
} else {
31-
app.deactivate();
32-
}
3327
}
3428

3529
#[cfg(target_os = "macos")]

apps/plumeimpactor/src/screen/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl Impactor {
118118
let (id, open_task) = window::open(defaults::default_window_settings());
119119
(Some(id), open_task.discard())
120120
};
121-
crate::macos_app::set_main_window_visible(main_window.is_some());
121+
crate::macos_app::set_main_window_visible(true);
122122
crate::macos_app::reset_activation_state();
123123

124124
(

0 commit comments

Comments
 (0)