mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-20 00:23:22 +02:00
feat: show commits when missmatched headers
This commit is contained in:
parent
e382821ac6
commit
85423b074e
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
#include "config/config.hpp"
|
||||
#include "src/debug/Log.hpp"
|
||||
#include "src/managers/PointerManager.hpp"
|
||||
#include "src/version.h"
|
||||
|
||||
bool isEnabled() {
|
||||
static auto* const* PENABLED = (Hyprlang::INT* const*) getConfig(CONFIG_ENABLED);
|
||||
|
@ -93,6 +94,7 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
|
|||
const std::string HASH = __hyprland_api_get_hash();
|
||||
if (HASH != GIT_COMMIT_HASH) {
|
||||
HyprlandAPI::addNotification(PHANDLE, "[dynamic-cursors] Failed to load, mismatched headers!", CColor{1.0, 0.2, 0.2, 1.0}, 5000);
|
||||
HyprlandAPI::addNotification(PHANDLE, std::format("[dynamic-cursors] Built with: {}, running: {}", GIT_COMMIT_HASH, HASH), CColor{1.0, 0.2, 0.2, 1.0}, 5000);
|
||||
throw std::runtime_error("version mismatch");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue