allow adding minimized button on all desktop platforms

Didn't mean to limit that to Linux
This commit is contained in:
Henry Hiles 2026-10-05 12:35:18 -04:00
commit 3c6f9f5da2
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -103,12 +103,10 @@ class SettingsSectionsController
subtitle: Text(description), subtitle: Text(description),
secondary: Icon(icon), secondary: Icon(icon),
value: settings.showMinimizeButton, value: settings.showMinimizeButton,
onChanged: Platform.isLinux onChanged: (value) => ref
? (value) => ref .watch(SettingsController.provider.notifier)
.watch(SettingsController.provider.notifier) .set(settings.copyWith(showMinimizeButton: value))
.set(settings.copyWith(showMinimizeButton: value)) .onError(showError),
.onError(showError)
: null,
), ),
), ),
.new( .new(