Mercurial > minori
diff src/gui/window.cc @ 237:a7d0d543b334
*: make OS X builds succeed
new script: deploy_build.sh, creates the app bundle
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Fri, 19 Jan 2024 11:14:44 -0500 |
parents | 4d461ef7d424 |
children | 06d6c351925c |
line wrap: on
line diff
--- a/src/gui/window.cc Fri Jan 19 00:24:02 2024 -0500 +++ b/src/gui/window.cc Fri Jan 19 11:14:44 2024 -0500 @@ -43,6 +43,7 @@ #ifdef MACOSX # include "sys/osx/dark_theme.h" +# include "sys/osx/permissions.h" #elif defined(WIN32) # include "sys/win32/dark_theme.h" #endif @@ -72,7 +73,6 @@ new QHBoxLayout(main_widget.get()); AddMainWidgets(); - setCentralWidget(main_widget.get()); CreateBars(); @@ -114,6 +114,11 @@ thread->start(); }); +#ifdef MACOSX + if (!osx::AskForPermissions()) + return; +#endif + timer->start(5000); }