Skip to content

Commit

Permalink
Fix checking event type
Browse files Browse the repository at this point in the history
  • Loading branch information
helin24 committed Oct 1, 2024
1 parent bb8ac19 commit eebb3bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/devtools_app/lib/src/framework/theme_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class EditorThemeManager extends DisposableController

autoDisposeStreamSubscription(
dtd.onEvent(editorStreamName).listen((event) {
if (event.kind == EditorEventKind.themeChanged.toString()) {
if (EditorEventKind.values.asNameMap()[event.kind] ==
EditorEventKind.themeChanged) {
final currentTheme = getIdeTheme();
final newTheme = ThemeChangedEvent.fromJson(event.data).theme;

Expand Down

0 comments on commit eebb3bb

Please sign in to comment.