Skip to content

Commit bf5dc78

Browse files
committed
persist config state when changed
1 parent 304fc9f commit bf5dc78

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Template for new versions:
3131
## New Features
3232

3333
## Fixes
34+
- `gui/notify`: persist notification settings when toggled in the UI
3435

3536
## Misc Improvements
3637

gui/notify.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ end
174174
function Notify:toggle(_, choice)
175175
if not choice then return end
176176
notifications.config.data[choice.name].enabled = not choice.enabled
177+
notifications.config:write()
177178
self:refresh()
178179
end
179180

@@ -184,6 +185,7 @@ function Notify:toggle_all()
184185
for name in pairs(notifications.NOTIFICATIONS_BY_NAME) do
185186
notifications.config.data[name].enabled = target_state
186187
end
188+
notifications.config:write()
187189
self:refresh()
188190
end
189191

0 commit comments

Comments
 (0)