mirror of
https://github.com/MoxiFoxi411/QuickSSH.git
synced 2026-11-08 19:34:55 +00:00
fixed vibration switch
This commit is contained in:
1 parent
ba2dc23c6c
commit
eed999d2ab
8 files changed
+162
-91
No files matched your search
@@ -16,6 +16,7 @@ class SettingsController extends ChangeNotifier {
|
||||
}
|
||||
|
||||
Future<void> toggleVibration(bool value) async {
|
||||
print("Toggling vibration to: $value");
|
||||
_vibrationEnabled = value;
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
await prefs.setBool('vibration_enabled', value);
|
||||
|
||||
Reference in new issue
Block a user