mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
fix: skip paste board minimizing if nothing to paste
This commit is contained in:
parent
63bf704e7f
commit
98fc47be44
@ -1879,6 +1879,9 @@ static VOID CALLBACK _DeferMinimizeTimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEv
|
||||
if (IsAsyncKeyDown(VK_CONTROL)) {
|
||||
return; // user held Ctrl during the deferral window — keep window visible
|
||||
}
|
||||
if (!SciCall_CanPaste()) {
|
||||
return; // clipboard has nothing pasteable — keep window visible so the user can act
|
||||
}
|
||||
_StartupMinimizeMainWnd(hwnd);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user