Fix typo (mimized -> minimized) (#9674)

This commit is contained in:
Daniel Zhu 2024-03-21 16:14:31 -07:00 committed by GitHub
parent 95b2f4caf2
commit 441677c90a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {
@ -429,7 +429,7 @@ impl MacWindowState {
}
fn is_minimized(&self) -> bool {
self.mimized
self.minimized
}
fn is_fullscreen(&self) -> bool {
@ -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(
@ -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(