mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 02:29:51 +01:00
UI: Validate address entered in settings.
This commit is contained in:
1 parent
3bc2cad31b
commit
30dcc2a13a
4 files changed
+125
-4
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user