Make updater dialog non-modal

Force the updater dialog to be non-modal so users can continue using
the application while checking for or downloading updates. This improves
user experience by not blocking interaction with the main window.

The dialog is explicitly set to non-modal in the constructor, overriding
any setting from the UI file.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
Zephyron
2025-11-22 16:13:10 +10:00
parent 5122b95475
commit 87a4d61789
2 changed files with 4 additions and 1 deletions

View File

@@ -48,6 +48,9 @@ UpdaterDialog::UpdaterDialog(QWidget* parent)
ui->setupUi(this); ui->setupUi(this);
// Force the dialog to be non-modal, overriding any setting from the .ui file.
setModal(false);
// Disable the default link handling behavior of the QTextBrowser. // Disable the default link handling behavior of the QTextBrowser.
ui->changelogText->setOpenLinks(false); ui->changelogText->setOpenLinks(false);

View File

@@ -18,7 +18,7 @@
<normaloff>:/icons/default/citron.ico</normaloff>:/icons/default/citron.ico</iconset> <normaloff>:/icons/default/citron.ico</normaloff>:/icons/default/citron.ico</iconset>
</property> </property>
<property name="modal"> <property name="modal">
<bool>true</bool> <bool>false</bool>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="margin"> <property name="margin">