fix: resolve X11 macro conflicts with enum values and Qt constants

Rename Success enums and fix Qt event types to avoid X11 macro conflicts.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
Zephyron
2025-09-14 20:09:09 +10:00
parent 2d890316ad
commit c32ac3b3c1
13 changed files with 41 additions and 41 deletions

View File

@@ -102,7 +102,7 @@ void UpdaterDialog::OnUpdateCompleted(Updater::UpdaterService::UpdateResult resu
progress_timer->stop();
switch (result) {
case Updater::UpdaterService::UpdateResult::Success:
case Updater::UpdaterService::UpdateResult::UpdateSuccess:
ShowCompletedState();
break;
case Updater::UpdaterService::UpdateResult::Cancelled:
@@ -329,7 +329,7 @@ QString UpdaterDialog::FormatBytes(qint64 bytes) const {
QString UpdaterDialog::GetUpdateMessage(Updater::UpdaterService::UpdateResult result) const {
switch (result) {
case Updater::UpdaterService::UpdateResult::Success:
case Updater::UpdaterService::UpdateResult::UpdateSuccess:
return QStringLiteral("Update completed successfully!");
case Updater::UpdaterService::UpdateResult::Failed:
return QStringLiteral("Update failed due to an unknown error.");