[win] changed info for update plugins

This commit is contained in:
maxkadushkin
2025-08-27 19:33:40 +03:00
parent eef3e86d63
commit 12cf056ac9
3 changed files with 8 additions and 4 deletions

View File

@ -1891,6 +1891,9 @@ bool CAscApplicationManagerWrapper::applySettings(const wstring& wstrjson)
_lang_id = l;
_reg_user.setValue("locale", _lang_id);
QJsonObject _json_obj{{"lang", _lang_id}};
AscAppManager::getInstance().UpdatePlugins(Utils::stringifyJson(_json_obj).toStdWString());
if (!direction_changed)
CLangater::reloadTranslations(_lang_id);
#ifdef _UPDMODULE
@ -2056,7 +2059,8 @@ void CAscApplicationManagerWrapper::applyTheme(const wstring& theme, bool force)
_editor->applyTheme(theme);
}
AscAppManager::getInstance().SetSkin(_app.m_themes->current().json());
QJsonObject _json_obj{{"theme", _app.m_themes->current().json()}};
AscAppManager::getInstance().UpdatePlugins(Utils::stringifyJson(_json_obj).toStdWString());
AscAppManager::sendCommandTo(SEND_TO_ALL_START_PAGE, L"uitheme:changed", theme);
}
}

View File

@ -546,9 +546,9 @@ auto CTheme::fromJson(const QString& json) -> bool
return false;
}
auto CTheme::json() const -> std::wstring
auto CTheme::json() const -> QString
{
return m_priv->json.isEmpty() ? L"" : m_priv->json.toStdWString();
return m_priv->json.isEmpty() ? "" : m_priv->json;
}
auto CTheme::id() const -> std::wstring

View File

@ -81,7 +81,7 @@ public:
auto fromFile(const QString&) -> bool;
auto fromJson(const QString&) -> bool;
auto json() const -> std::wstring;
auto json() const -> QString;
auto id() const -> std::wstring;
auto originalId() const -> std::wstring;