fix: Drag with mouse switch (#195)

This commit is contained in:
Bailey 2025-01-02 21:21:27 +10:30 committed by GitHub
parent 6e930a3393
commit ae4707d3a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -498,7 +498,9 @@ class _ClientSettingsPageState extends ConsumerState<ClientSettingsPage> {
.update((current) => current.copyWith(mouseDragSupport: !clientSettings.mouseDragSupport)),
trailing: Switch(
value: clientSettings.mouseDragSupport,
onChanged: (value) => ref.read(clientSettingsProvider.notifier).setAmoledBlack(value),
onChanged: (value) => ref
.read(clientSettingsProvider.notifier)
.update((current) => current.copyWith(mouseDragSupport: !clientSettings.mouseDragSupport)),
),
),
],