summaryrefslogtreecommitdiff
path: root/hyprpm/src/core/DataState.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-12-04 18:00:15 +0000
committerGitHub <noreply@github.com>2025-12-04 18:00:15 +0000
commit9cd070fd3125cb5ec963f1271d5d6fff1231181f (patch)
treeb210e61ed0faab7d927f55ea82bcf3ca2a9d0f8b /hyprpm/src/core/DataState.cpp
parentd9657a95cb6706860332ff47dad444a96bcc874a (diff)
hyprpm: check for abi strings in headersValid (#12504)
--------- Co-authored-by: Virt <41426325+VirtCode@users.noreply.github.com>
Diffstat (limited to 'hyprpm/src/core/DataState.cpp')
-rw-r--r--hyprpm/src/core/DataState.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/hyprpm/src/core/DataState.cpp b/hyprpm/src/core/DataState.cpp
index 131146a1..42f1d428 100644
--- a/hyprpm/src/core/DataState.cpp
+++ b/hyprpm/src/core/DataState.cpp
@@ -181,7 +181,7 @@ void DataState::updateGlobalState(const SGlobalState& state) {
// clang-format off
auto DATA = toml::table{
{"state", toml::table{
- {"hash", state.headersHashCompiled},
+ {"hash", state.headersAbiCompiled},
{"dont_warn_install", state.dontWarnInstall}
}}
};
@@ -206,8 +206,8 @@ SGlobalState DataState::getGlobalState() {
auto DATA = toml::parse_file(stateFile.c_str());
SGlobalState state;
- state.headersHashCompiled = DATA["state"]["hash"].value_or("");
- state.dontWarnInstall = DATA["state"]["dont_warn_install"].value_or(false);
+ state.headersAbiCompiled = DATA["state"]["hash"].value_or("");
+ state.dontWarnInstall = DATA["state"]["dont_warn_install"].value_or(false);
return state;
}