mirror of
https://github.com/electron/electron.git
synced 2026-02-03 03:35:29 -05:00
🐛 store current level fix
This commit is contained in:
@@ -208,7 +208,7 @@ bool ScopedDisableResize::disable_resize_ = false;
|
||||
- (void)windowWillMiniaturize:(NSNotification*)notification {
|
||||
NSWindow* window = shell_->GetNativeWindow();
|
||||
// store the current status window level to be restored in windowDidDeminiaturize
|
||||
level_ = NSStatusWindowLevel;
|
||||
level_ = [window level];
|
||||
[window setLevel:NSNormalWindowLevel];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user