Skip to content

Commit f49bd29

Browse files
committed
[fix] global: fix dialog on macos new liquid glass
1 parent ccab9c6 commit f49bd29

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build_mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-python@v2
1515
with:
16-
python-version: '3.8'
16+
python-version: '3.11'
1717
- name: Set up Homebrew #https://github.com/Homebrew/homebrew-cask/issues/150323
1818
id: set-up-homebrew
1919
uses: Homebrew/actions/setup-homebrew@master

src/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ void messageHandler(QtMsgType type, const QMessageLogContext &context, const QSt
3838
int main(int argc, char *argv[]) {
3939
qputenv("OPENCV_OPENCL_DEVICE", "disabled"); // disable OpenCL to fix windows memory leaks and increase performance
4040
if (qstrcmp(argv[1], "--cli")) {
41+
#ifdef Q_OS_MACOS
42+
QApplication::setAttribute(Qt::AA_DontUseNativeDialogs, true);
43+
#endif
4144
QApplication a(argc, argv);
4245
QPixmap pixmap(QStringLiteral(":/assets/icon.png"));
4346
QSplashScreen splash(pixmap);

0 commit comments

Comments
 (0)