Raise configuration window (MacOS bug)

## Summary

I've added a call to [`dialog->raise()`](https://doc.qt.io/qt-5/qwindow.html#raise) when launching the configuration dialog.

This is intended to fix a MacOS bug where the configuration window launches behind other open windows, but this call shouldn't harm operating systems as well.

BUG: 416050

## Test Plan

### Before:
Configuration dialog launches behind other open windows on MacOS.

### After:
Configuration dialog launches over other open windows on MacOS.
This commit is contained in:
Ryan Adolf 2022-02-26 10:23:20 +00:00 committed by Weixuan Xiao
parent 5b314846fe
commit 14543fcba5

View file

@ -83,7 +83,9 @@ int main(int argc, char** argv)
dialog->addModule(KPluginMetaData(QStringLiteral("kcm_kdeconnect"))); dialog->addModule(KPluginMetaData(QStringLiteral("kcm_kdeconnect")));
dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->show(); dialog->show();
dialog->raise();
} else { } else {
dialog->raise();
dialog->activateWindow(); dialog->activateWindow();
} }
}); });