Hide dock icon on minimize macOS

This commit is contained in:
Shady Nawara 2022-04-28 05:20:37 +00:00 committed by Adam Honse
parent 6cd4dc8674
commit bc5fedbbec
5 changed files with 41 additions and 0 deletions

View file

@ -21,6 +21,10 @@
#include "OpenRGBDialog2.h"
#ifdef __APPLE__
#include "macutils.h"
#endif
using namespace std::chrono_literals;
/*-------------------------------------------------------------*\
@ -339,6 +343,9 @@ int main(int argc, char* argv[])
if(ret_flags & RET_FLAG_START_MINIMIZED)
{
#ifdef __APPLE__
MacUtils::ToggleApplicationDocklessState(false);
#endif
dlg.hide();
}
else