GUI: Fix CloudConnectionWizard warnings

This commit is contained in:
Alexander Tkachov 2023-04-01 15:48:38 +02:00 committed by Eugene Sandulenko
parent f3149a9b5d
commit 538303e408

View File

@ -97,6 +97,9 @@ void CloudConnectionWizard::showStep(Step newStep) {
return;
switch (_currentStep) {
case Step::NONE:
break;
case Step::MODE_SELECT:
hideStepModeSelect();
break;
@ -133,6 +136,9 @@ void CloudConnectionWizard::showStep(Step newStep) {
_currentStep = newStep;
switch (_currentStep) {
case Step::NONE:
break;
case Step::MODE_SELECT:
showStepModeSelect();
break;
@ -228,8 +234,9 @@ void CloudConnectionWizard::refreshStepQuickMode1(bool displayAsStopped) {
_button0->setTooltip(_(serverIsRunning ? "Stop local webserver" : "Run local webserver"));
}
if (_label2) {
_label2->setLabel(serverIsRunning ? LocalServer.getAddress() : _("Not running"));
if (_label2) {
Common::U32String address = LocalServer.getAddress();
_label2->setLabel(serverIsRunning ? address : _("Not running"));
}
}
@ -597,6 +604,9 @@ void CloudConnectionWizard::handleCommand(CommandSender *sender, uint32 cmd, uin
case Step::MANUAL_MODE_STEP_2:
manualModeConnect();
break;
default:
break;
}
break;
@ -618,6 +628,9 @@ void CloudConnectionWizard::handleCommand(CommandSender *sender, uint32 cmd, uin
case Step::MANUAL_MODE_FAILURE:
showStep(Step::MANUAL_MODE_STEP_2);
break;
default:
break;
}
break;