mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
fix: restore window's canHide property on macOS (#47970)
* fix: restore window's canHide property on macOS * chore: empty commit to unstick CI --------- Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
@@ -543,6 +543,9 @@ v8::Local<v8::Promise> Browser::DockShow(v8::Isolate* isolate) {
|
||||
gin_helper::Promise<void> promise(isolate);
|
||||
v8::Local<v8::Promise> handle = promise.GetHandle();
|
||||
|
||||
for (auto* const& window : WindowList::GetWindows())
|
||||
[window->GetNativeWindow().GetNativeNSWindow() setCanHide:YES];
|
||||
|
||||
BOOL active = [[NSRunningApplication currentApplication] isActive];
|
||||
ProcessSerialNumber psn = {0, kCurrentProcess};
|
||||
if (active) {
|
||||
|
||||
Reference in New Issue
Block a user