VERY experimental Nintendo Switch 2 emulator
C++
Port citra-emu/citra#3610 to yuzu
N00byKing6386f0910c2a
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cppindex 53ac1fd6a8..265502c2ad 100644--- a/src/yuzu/main.cpp+++ b/src/yuzu/main.cpp@@ -78,6 +78,9 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {ui.setupUi(this);statusBar()->hide();+ default_theme_paths = QIcon::themeSearchPaths();+ UpdateUITheme();+InitializeWidgets();InitializeDebugWidgets();InitializeRecentFileMenuActions();@@ -95,9 +98,6 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {game_list->PopulateAsync(UISettings::values.gamedir, UISettings::values.gamedir_deepscan);- default_theme_paths = QIcon::themeSearchPaths();- UpdateUITheme();-// Show one-time "callout" messages to the userShowCallouts();@@ -860,6 +860,7 @@ void GMainWindow::UpdateUITheme() {QIcon::setThemeName(":/icons/default");}QIcon::setThemeSearchPaths(theme_paths);+ emit UpdateThemedIcons();}#ifdef maindiff --git a/src/yuzu/main.h b/src/yuzu/main.hindex 2920219389..20ff65314b 100644--- a/src/yuzu/main.h+++ b/src/yuzu/main.h@@ -64,6 +64,9 @@ signals:*/void EmulationStopping();+ // Signal that tells widgets to update icons to use the current theme+ void UpdateThemedIcons();+private:void InitializeWidgets();void InitializeDebugWidgets();