mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-02 13:03:22 +00:00
Use Partial types for DNDSettings, SettingsOptions.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -92,7 +92,7 @@ export function initPreferenceView(): void {
|
||||
|
||||
ipcRenderer.on(
|
||||
"toggle-dnd",
|
||||
(_event: Event, _state: boolean, newSettings: DNDSettings) => {
|
||||
(_event: Event, _state: boolean, newSettings: Partial<DNDSettings>) => {
|
||||
handleToggle("show-notification-option", newSettings.showNotification);
|
||||
handleToggle("silent-option", newSettings.silent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user