mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
Add notification for failed function hook
This commit is contained in:
parent
e57d1aec4c
commit
ec783b0480
1 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,12 @@ void setup_selection_hook() {
|
|||
|
||||
if (decoUpdateCandidates.size() != 1) {
|
||||
Debug::log(ERR, "Expected one matching function to hook for \"updateWindowAnimatedDecorationValues\", found %d", decoUpdateCandidates.size());
|
||||
HyprlandAPI::addNotificationV2(PHANDLE, {
|
||||
{"text", "Failed to load function hooks: \"updateWindowAnimatedDecorationValues\""},
|
||||
{"time", (uint64_t)10000},
|
||||
{"color", CColor(1.0, 0.0, 0.0, 1.0)},
|
||||
{"icon", ICON_ERROR},
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue