Skip to content

Commit 52d5d6d

Browse files
committed
e
1 parent 1f7d353 commit 52d5d6d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

hyprpm/src/core/DataState.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ SGlobalState DataState::getGlobalState() {
206206
auto DATA = toml::parse_file(stateFile.c_str());
207207

208208
SGlobalState state;
209-
state.headersHashCompiled = DATA["state"]["hash"].value_or("");
210-
state.dontWarnInstall = DATA["state"]["dont_warn_install"].value_or(false);
209+
state.headersAbiCompiled = DATA["state"]["hash"].value_or("");
210+
state.dontWarnInstall = DATA["state"]["dont_warn_install"].value_or(false);
211211

212212
return state;
213213
}

hyprpm/src/core/DataState.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
struct SGlobalState {
88
std::string headersAbiCompiled = "";
9-
bool dontWarnInstall = false;
9+
bool dontWarnInstall = false;
1010
};
1111

1212
namespace DataState {

hyprpm/src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ int main(int argc, char** argv, char** envp) {
106106
const auto HLVER = g_pPluginManager->getHyprlandVersion();
107107
auto GLOBALSTATE = DataState::getGlobalState();
108108

109-
if (GLOBALSTATE.headersHashCompiled != HLVER.hash) {
109+
if (GLOBALSTATE.headersAbiCompiled != HLVER.abiHash) {
110110
std::println(stderr, "{}", failureString("Headers outdated, please run hyprpm update."));
111111
return 1;
112112
}
@@ -137,7 +137,7 @@ int main(int argc, char** argv, char** envp) {
137137
if (headers) {
138138
const auto HLVER = g_pPluginManager->getHyprlandVersion(false);
139139
auto GLOBALSTATE = DataState::getGlobalState();
140-
const auto COMPILEDOUTDATED = HLVER.hash != GLOBALSTATE.headersHashCompiled;
140+
const auto COMPILEDOUTDATED = HLVER.abiHash != GLOBALSTATE.headersAbiCompiled;
141141

142142
bool ret1 = g_pPluginManager->updatePlugins(!headersValid || force || COMPILEDOUTDATED);
143143

0 commit comments

Comments
 (0)