From e96f55b6e2e982b517637af724f39dede30bd429 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 28 Nov 2022 08:40:38 -0500 Subject: yuzu/main: Merge variable declaration into ifdef This is only used in the non-Windows path. --- src/yuzu/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 2aae746f0..346d14252 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -4037,7 +4037,6 @@ void GMainWindow::UpdateUITheme() { const QString default_theme = QString::fromUtf8(UISettings::themes[static_cast(Config::default_theme)].second); QString current_theme = UISettings::values.theme; - QStringList theme_paths(default_theme_paths); if (current_theme.isEmpty()) { current_theme = default_theme; @@ -4050,7 +4049,7 @@ void GMainWindow::UpdateUITheme() { if (current_theme == QStringLiteral("default") || current_theme == QStringLiteral("colorful")) { QIcon::setThemeName(current_theme == QStringLiteral("colorful") ? current_theme : startup_icon_theme); - QIcon::setThemeSearchPaths(theme_paths); + QIcon::setThemeSearchPaths(QStringList(default_theme_paths)); if (CheckDarkMode()) { current_theme = QStringLiteral("default_dark"); } -- cgit v1.2.3