Theme: Fix the issue that the stylesheet combobox did not update when theme changed.

This commit is contained in:
Paddle
2023-08-16 08:14:07 +02:00
parent d65495e20e
commit acb63fa79d

View File

@@ -376,7 +376,11 @@ void DlgSettingsGeneral::saveThemes()
for (const auto& pack : packs) {
if (pack.first == newTheme) {
Application::Instance->prefPackManager()->apply(pack.first);
if (Application::Instance->prefPackManager()->apply(pack.first)) {
auto parentDialog = qobject_cast<DlgPreferencesImp*> (this->window());
if (parentDialog)
parentDialog->reload();
}
break;
}
}