Unverified Commit ef634b39 authored by saltedpotatos's avatar saltedpotatos Committed by GitHub

Fix typo in settings_controller.dart (#91866)

Also make the spelling ThemeMode consistent
parent 686a1c27
...@@ -34,10 +34,10 @@ class SettingsController with ChangeNotifier { ...@@ -34,10 +34,10 @@ class SettingsController with ChangeNotifier {
Future<void> updateThemeMode(ThemeMode? newThemeMode) async { Future<void> updateThemeMode(ThemeMode? newThemeMode) async {
if (newThemeMode == null) return; if (newThemeMode == null) return;
// Dot not perform any work if new and old ThemeMode are identical // Do not perform any work if new and old ThemeMode are identical
if (newThemeMode == _themeMode) return; if (newThemeMode == _themeMode) return;
// Otherwise, store the new theme mode in memory // Otherwise, store the new ThemeMode in memory
_themeMode = newThemeMode; _themeMode = newThemeMode;
// Important! Inform listeners a change has occurred. // Important! Inform listeners a change has occurred.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment