Skip to content

Commit

Permalink
Make theme manager static
Browse files Browse the repository at this point in the history
  • Loading branch information
helin24 committed Oct 2, 2024
1 parent 60bad2a commit 7a3db78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/devtools_app/lib/src/framework/framework_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ abstract class FrameworkCore {
static void dispose() {
extensionService.dispose();
preferences.dispose();
themeManager?.dispose();
_themeManager?.dispose();
unawaited(dtdManager.dispose());
}

Expand All @@ -95,7 +95,7 @@ abstract class FrameworkCore {

static bool vmServiceInitializationInProgress = false;

static EditorThemeManager? themeManager;
static EditorThemeManager? _themeManager;

/// Attempts to initialize a VM service connection and return whether the
/// connection attempt succeeded.
Expand Down Expand Up @@ -191,7 +191,7 @@ Future<void> _initDTDConnection() async {
);

if (dtdManager.connection.value != null) {
FrameworkCore.themeManager =
FrameworkCore._themeManager =
EditorThemeManager(dtdManager.connection.value!)
..listenForThemeChanges();
}
Expand Down

0 comments on commit 7a3db78

Please sign in to comment.