Skip to content

Commit

Permalink
fix: Drag with mouse switch (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
bazzadazza72 authored Jan 2, 2025
1 parent 6e930a3 commit ae4707d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/screens/settings/client_settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
),
),
],
Expand Down

0 comments on commit ae4707d

Please sign in to comment.