Created Hook system (let's users run commands after specific actions)

NInputAction: create NTextInput with NButton
HooksService: add dark/light mode hook, add wallpaper change hook
HooksTab: create 1 NInputAction for each hook
Wallpaper: add hook functionallity
This commit is contained in:
Ly-sec 2025-09-04 17:54:58 +02:00
parent d53a404bf1
commit 37eefe3663
9 changed files with 274 additions and 3 deletions

View file

@ -256,6 +256,11 @@ Singleton {
// Update cache directly
currentWallpapers[screenName] = path
// Execute wallpaper change hook
if (HooksService) {
HooksService.executeWallpaperHook(path)
}
// Update Settings - still need immutable update for Settings persistence
// The slice() ensures Settings detects the change and saves properly
var monitors = Settings.data.wallpaper.monitors || []