Make us actually go to foreground on Mac

This commit is contained in:
2025-12-27 09:10:18 +01:00
parent 5183567670
commit 2a4649b963

View File

@@ -370,9 +370,6 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *event)
void MainWindow::openSettings()
{
if (systemTrayIcon)
setIsForeground(true);
auto *dialog = new QDialog(this);
dialog->setWindowTitle("Settings");
@@ -404,6 +401,9 @@ void MainWindow::openSettings()
dialog->show();
dialog->raise();
if (systemTrayIcon)
setIsForeground(true);
auto result = dialog->exec();
auto text = textEdit->toPlainText();
delete dialog;