From f3092664229699f6647146827cbafad0b294e075 Mon Sep 17 00:00:00 2001 From: iyzsong Date: Sun, 12 Jan 2025 07:21:01 -0600 Subject: [PATCH] (Qt) Fix desktop menu crash with CHEEVOS disabled (#17400) --- ui/drivers/qt/qt_dialogs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/drivers/qt/qt_dialogs.cpp b/ui/drivers/qt/qt_dialogs.cpp index 5be93e3d3be..bdecef42e8f 100644 --- a/ui/drivers/qt/qt_dialogs.cpp +++ b/ui/drivers/qt/qt_dialogs.cpp @@ -574,7 +574,9 @@ ViewOptionsDialog::ViewOptionsDialog(MainWindow *mainwindow, QWidget *parent) : addCategory(new OnscreenDisplayCategory(this)); addCategory(new UserInterfaceCategory(mainwindow, this)); addCategory(new AIServiceCategory(this)); +#ifdef HAVE_CHEEVOS addCategory(new AchievementsCategory(this)); +#endif addCategory(new NetworkCategory(this)); addCategory(new PlaylistsCategory(this)); addCategory(new UserCategory(this));