Skip to content

Commit

Permalink
Fix typo (mimized -> minimized) (zed-industries#9674)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielzsh authored Mar 21, 2024
1 parent 95b2f4c commit 441677c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/gpui/src/platform/mac/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ struct MacWindowState {
input_during_keydown: Option<SmallVec<[ImeInput; 1]>>,
previous_keydown_inserted_text: Option<String>,
external_files_dragged: bool,
mimized: bool,
minimized: bool,
}

impl MacWindowState {
Expand Down Expand Up @@ -429,7 +429,7 @@ impl MacWindowState {
}

fn is_minimized(&self) -> bool {
self.mimized
self.minimized
}

fn is_fullscreen(&self) -> bool {
Expand Down Expand Up @@ -607,7 +607,7 @@ impl MacWindow {
input_during_keydown: None,
previous_keydown_inserted_text: None,
external_files_dragged: false,
mimized: false,
minimized: false,
})));

(*native_window).set_ivar(
Expand Down Expand Up @@ -1830,13 +1830,13 @@ extern "C" fn conclude_drag_operation(this: &Object, _: Sel, _: id) {
extern "C" fn window_did_miniaturize(this: &Object, _: Sel, _: id) {
let window_state = unsafe { get_window_state(this) };

window_state.lock().mimized = true;
window_state.lock().minimized = true;
}

extern "C" fn window_did_deminiaturize(this: &Object, _: Sel, _: id) {
let window_state = unsafe { get_window_state(this) };

window_state.lock().mimized = false;
window_state.lock().minimized = false;
}

async fn synthetic_drag(
Expand Down

0 comments on commit 441677c

Please sign in to comment.