mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-13 03:57:34 +00:00
Fix single-instance activation maximizing OrcaSlicer (#15665)
This commit is contained in:
@@ -114,7 +114,10 @@ namespace instance_check_internal
|
||||
if (my_instance_hash == other_instance_hash) {
|
||||
BOOST_LOG_TRIVIAL(debug) << "win enum - found correct instance";
|
||||
orca_slicer_hwnd = hwnd;
|
||||
ShowWindow(hwnd, SW_SHOWMAXIMIZED);
|
||||
// Do not alter the window state when opening a file in the existing instance.
|
||||
// A minimized window still needs restoring before it can receive focus.
|
||||
if (IsIconic(hwnd))
|
||||
ShowWindow(hwnd, SW_RESTORE);
|
||||
SetForegroundWindow(hwnd);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user