mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-14 01:24:39 -04:00
Add support for loading profiles on suspend/resume
This commit is contained in:
9
main.cpp
9
main.cpp
@@ -236,6 +236,15 @@ int main(int argc, char* argv[])
|
||||
|
||||
if(ret_flags & RET_FLAG_START_MINIMIZED)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
/*---------------------------------------------------------*\
|
||||
| Show the window always, even if it will immediately be |
|
||||
| hidden. On Windows, events are not delivered to |
|
||||
| nativeEventFilter (for SuspendResume) until the window |
|
||||
| has been shown once. |
|
||||
\*---------------------------------------------------------*/
|
||||
dlg.showMinimized();
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
MacUtils::ToggleApplicationDocklessState(false);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user