diff src/gui/window.cc @ 249:6b2441c776dd

*: merge
author Paper <mrpapersonic@gmail.com>
date Wed, 24 Jan 2024 20:18:59 -0500
parents 06d6c351925c
children c130f47f6f48
line wrap: on
line diff
--- a/src/gui/window.cc	Wed Jan 24 20:18:14 2024 -0500
+++ b/src/gui/window.cc	Wed Jan 24 20:18:59 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
@@ -66,13 +67,12 @@
 }
 
 MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) {
-	setWindowIcon(QIcon(":/favicon.png"));
+	setWindowIcon(QIcon(":/icons/favicon.png"));
 
 	main_widget.reset(new QWidget(this));
 	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);
 }