Hide dock icon on minimize macOS
This commit is contained in:
parent
6cd4dc8674
commit
bc5fedbbec
5 changed files with 41 additions and 0 deletions
7
main.cpp
7
main.cpp
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue