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:
parent
d53a404bf1
commit
37eefe3663
9 changed files with 274 additions and 3 deletions
|
|
@ -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 || []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue