GUI: Make Cloud tab wizard input box cleanup value

Now input box does not remember old code you've put in it if you changed
selected storage or disconnected one.
This commit is contained in:
Alexander Tkachev 2019-07-19 17:58:04 +07:00 committed by Matan Bareket
parent 28c93ed027
commit a1b847a1ef

View File

@ -2208,6 +2208,8 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
break;
}
case kPopUpItemSelectedCmd: {
if (_storageWizardCodeBox)
_storageWizardCodeBox->setEditString("");
// update container's scrollbar
reflowLayout();
break;
@ -2298,6 +2300,9 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
break;
}
case kDisconnectStorageCmd: {
if (_storageWizardCodeBox)
_storageWizardCodeBox->setEditString("");
if (_selectedStorageIndex == CloudMan.getStorageIndex() && CloudMan.isWorking()) {
bool cancel = true;