Fix single case of incorrect usage

This commit is contained in:
Dean Herbert 2021-05-14 12:04:38 +09:00
parent 447371478e
commit b36c991ba1
1 changed files with 3 additions and 0 deletions

View File

@ -635,6 +635,9 @@ private void onModeChanged(ValueChangedEvent<EditorScreenMode> e)
case EditorScreenMode.Verify:
currentScreen = new VerifyScreen();
break;
default:
throw new InvalidOperationException("Editor menu bar switched to an unsupported mode");
}
LoadComponentAsync(currentScreen, newScreen =>