-
Notifications
You must be signed in to change notification settings - Fork 366
Re-enable discarded_futures lint
#9117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
13ce11b
0b55d24
3d40e17
6ceeee8
d350224
30c64ad
ea74a31
3d1abbc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -135,9 +135,11 @@ class PreferencesController extends DisposableController | |
| ga.impression(gac.devToolsMain, gac.startingTheme(darkMode: useDarkMode)); | ||
| toggleDarkModeTheme(useDarkMode); | ||
| addAutoDisposeListener(darkModeEnabled, () { | ||
| storage.setValue( | ||
| _UiPreferences.darkMode.storageKey, | ||
| '${darkModeEnabled.value}', | ||
| safeUnawaited( | ||
| storage.setValue( | ||
| _UiPreferences.darkMode.storageKey, | ||
| '${darkModeEnabled.value}', | ||
| ), | ||
| ); | ||
| }); | ||
| } | ||
|
|
@@ -149,9 +151,11 @@ class PreferencesController extends DisposableController | |
| ); | ||
| toggleVmDeveloperMode(vmDeveloperModeValue); | ||
| addAutoDisposeListener(vmDeveloperModeEnabled, () { | ||
| storage.setValue( | ||
| _UiPreferences.vmDeveloperMode.storageKey, | ||
| '${vmDeveloperModeEnabled.value}', | ||
| safeUnawaited( | ||
| storage.setValue( | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we ever await storage.setValue? If not, we could change the return type of setValue to void and then add the safeUnawatied wrapper inside that method.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point,
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like we were awaiting
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah got it! Reverted those changes |
||
| _UiPreferences.vmDeveloperMode.storageKey, | ||
| '${vmDeveloperModeEnabled.value}', | ||
| ), | ||
| ); | ||
| }); | ||
| } | ||
|
|
@@ -237,9 +241,11 @@ class PreferencesController extends DisposableController | |
| ); | ||
| toggleVerboseLogging(verboseLoggingEnabledValue); | ||
| addAutoDisposeListener(verboseLoggingEnabled, () { | ||
| storage.setValue( | ||
| _GeneralPreferences.verboseLogging.name, | ||
| verboseLoggingEnabled.value.toString(), | ||
| safeUnawaited( | ||
| storage.setValue( | ||
| _GeneralPreferences.verboseLogging.name, | ||
| verboseLoggingEnabled.value.toString(), | ||
| ), | ||
| ); | ||
| }); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it should have always been awaited