SaveTool: replace a chain of ifs with a switch.
This commit is contained in:
parent
057185cb65
commit
441e0c2d1a
1 changed files with 13 additions and 11 deletions
|
@ -353,17 +353,19 @@ void SaveTool::drawImGui() {
|
||||||
void SaveTool::drawGui() {
|
void SaveTool::drawGui() {
|
||||||
drawMainMenu();
|
drawMainMenu();
|
||||||
|
|
||||||
if(_uiState == UiState::Disclaimer) {
|
switch(_uiState) {
|
||||||
drawDisclaimer();
|
case UiState::Disclaimer:
|
||||||
}
|
drawDisclaimer();
|
||||||
else if(_uiState == UiState::Initialising) {
|
break;
|
||||||
drawInitialisation();
|
case UiState::Initialising:
|
||||||
}
|
drawInitialisation();
|
||||||
else if(_uiState == UiState::ProfileManager) {
|
break;
|
||||||
drawProfileManager();
|
case UiState::ProfileManager:
|
||||||
}
|
drawProfileManager();
|
||||||
else if(_uiState == UiState::MainManager) {
|
break;
|
||||||
drawManager();
|
case UiState::MainManager:
|
||||||
|
drawManager();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_aboutPopup) {
|
if(_aboutPopup) {
|
||||||
|
|
Loading…
Reference in a new issue