Skip to content

Commit 955d416

Browse files
committed
[fix] global: fix dialog on macos new liquid glass
1 parent 6af0739 commit 955d416

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)