diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-01-29 23:36:55 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-01-29 23:37:05 +0000 |
| commit | 3ff59e7e1d859daa503b88ef125d087bc100abfe (patch) | |
| tree | 4a95daa233b2b4ffe397235333c086059d31d7f5 /hyprpm/src/core/PluginManager.cpp | |
| parent | 3d0d3b634332419995799cf5677bd56e6c0d967c (diff) | |
hyprpm: update global state on plugin recompile not header update
ref #4547
Diffstat (limited to 'hyprpm/src/core/PluginManager.cpp')
| -rw-r--r-- | hyprpm/src/core/PluginManager.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/hyprpm/src/core/PluginManager.cpp b/hyprpm/src/core/PluginManager.cpp index e9429814..0fc68df0 100644 --- a/hyprpm/src/core/PluginManager.cpp +++ b/hyprpm/src/core/PluginManager.cpp @@ -401,10 +401,6 @@ bool CPluginManager::updateHeaders(bool force) { progress.m_szCurrentMessage = "Done!"; progress.print(); - auto GLOBALSTATE = DataState::getGlobalState(); - GLOBALSTATE.headersHashCompiled = HLVER.hash; - DataState::updateGlobalState(GLOBALSTATE); - std::cout << "\n"; } else { progress.printMessageAbove(std::string{Colors::RED} + "✖" + Colors::RESET + " failed to install headers with error code " + std::to_string((int)HEADERSVALID)); @@ -438,7 +434,7 @@ bool CPluginManager::updatePlugins(bool forceUpdateAll) { const auto HLVER = getHyprlandVersion(); CProgressBar progress; - progress.m_iMaxSteps = REPOS.size() * 2 + 1; + progress.m_iMaxSteps = REPOS.size() * 2 + 2; progress.m_iSteps = 0; progress.m_szCurrentMessage = "Updating repositories"; progress.print(); @@ -571,6 +567,14 @@ bool CPluginManager::updatePlugins(bool forceUpdateAll) { } progress.m_iSteps++; + progress.m_szCurrentMessage = "Updating global state..."; + progress.print(); + + auto GLOBALSTATE = DataState::getGlobalState(); + GLOBALSTATE.headersHashCompiled = HLVER.hash; + DataState::updateGlobalState(GLOBALSTATE); + + progress.m_iSteps++; progress.m_szCurrentMessage = "Done!"; progress.print(); |
