UI: Validate address entered in settings.

This commit is contained in:
Unknown W. Brackets committed 2019-08-18 10:12:22 -07:00
1 parent 3bc2cad31b
commit 30dcc2a13a
4 files changed
+125 -4

No files matched your search

+7 -3
View File
@@ -268,6 +268,8 @@ bool PopupScreen::key(const KeyInput &key) {
void PopupScreen::update() {
UIDialogScreen::update();
defaultButton_->SetEnabled(CanComplete(DR_OK));
float animatePos = 1.0f;
++frames_;
@@ -314,10 +316,12 @@ void PopupScreen::SetPopupOrigin(const UI::View *view) {
}
void PopupScreen::TriggerFinish(DialogResult result) {
finishFrame_ = frames_;
finishResult_ = result;
if (CanComplete(result)) {
finishFrame_ = frames_;
finishResult_ = result;
OnCompleted(result);
OnCompleted(result);
}
}
void PopupScreen::resized() {