Make us actually go to foreground on Mac
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user