fix: restore window's canHide property on macOS (#48902)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: bill.shen <15865969+cucbin@users.noreply.github.com>
This commit is contained in:
trop[bot]
2025-11-13 15:22:10 -05:00
committed by GitHub
parent dc5681ed79
commit 35ed9f6c6a

View File

@@ -531,6 +531,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) {