mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-23 20:33:41 +00:00
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:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user