diff options
| author | rooot <hey@rooot.gay> | 2024-12-11 17:49:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-11 17:49:09 +0100 |
| commit | 33f271c29a0069a95755b1d3252aeebe0fd85287 (patch) | |
| tree | 33b625c9f4de21cf143b57bdd2c55f3adef74cb3 /hyprpm/src/main.cpp | |
| parent | e89231095383404853cef93d4aa7230a71a59560 (diff) | |
hyprpm: target installed instead of running version (#8634)
---------
Signed-off-by: rooot <hey@rooot.gay>
Diffstat (limited to 'hyprpm/src/main.cpp')
| -rw-r--r-- | hyprpm/src/main.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/hyprpm/src/main.cpp b/hyprpm/src/main.cpp index 55fb57e2..8e67af99 100644 --- a/hyprpm/src/main.cpp +++ b/hyprpm/src/main.cpp @@ -103,7 +103,7 @@ int main(int argc, char** argv, char** envp) { bool headersValid = g_pPluginManager->headersValid() == HEADERS_OK; bool headers = g_pPluginManager->updateHeaders(force); if (headers) { - const auto HLVER = g_pPluginManager->getHyprlandVersion(); + const auto HLVER = g_pPluginManager->getHyprlandVersion(false); auto GLOBALSTATE = DataState::getGlobalState(); const auto COMPILEDOUTDATED = HLVER.hash != GLOBALSTATE.headersHashCompiled; @@ -114,6 +114,9 @@ int main(int argc, char** argv, char** envp) { auto ret2 = g_pPluginManager->ensurePluginsLoadState(); + if (ret2 == LOADSTATE_HYPRLAND_UPDATED) + g_pPluginManager->notify(ICON_INFO, 0, 10000, "[hyprpm] Updated plugins, but Hyprland was updated. Please restart Hyprland."); + if (ret2 != LOADSTATE_OK) return 1; } else if (notify) @@ -130,6 +133,10 @@ int main(int argc, char** argv, char** envp) { } auto ret = g_pPluginManager->ensurePluginsLoadState(); + + if (ret == LOADSTATE_HYPRLAND_UPDATED) + g_pPluginManager->notify(ICON_INFO, 0, 10000, "[hyprpm] Enabled plugin, but Hyprland was updated. Please restart Hyprland."); + if (ret != LOADSTATE_OK) return 1; } else if (command[0] == "disable") { |
