summaryrefslogtreecommitdiff
path: root/src/progs/manaplus/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-08 06:07:15 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-08 06:07:15 +0300
commitfc1ca42ed5a1b2d83a1dc8f94709a057b8e28e9d (patch)
treef7f8af4849bc214a27ea8205410568b76ce5ec30 /src/progs/manaplus/client.cpp
parent6b3b81988ea37207eeeb2994761e307c6b6fb340 (diff)
downloadmanaverse-fc1ca42ed5a1b2d83a1dc8f94709a057b8e28e9d.tar.gz
manaverse-fc1ca42ed5a1b2d83a1dc8f94709a057b8e28e9d.tar.bz2
manaverse-fc1ca42ed5a1b2d83a1dc8f94709a057b8e28e9d.tar.xz
manaverse-fc1ca42ed5a1b2d83a1dc8f94709a057b8e28e9d.zip
Add support for change pin code by server request.
Diffstat (limited to 'src/progs/manaplus/client.cpp')
-rw-r--r--src/progs/manaplus/client.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp
index 504916ea7..4b9132b53 100644
--- a/src/progs/manaplus/client.cpp
+++ b/src/progs/manaplus/client.cpp
@@ -1861,6 +1861,19 @@ void Client::focusWindow()
}
}
+void Client::updatePinState()
+{
+ if (mCurrentDialog == nullptr ||
+ mState != State::CHAR_SELECT)
+ {
+ return;
+ }
+ CharSelectDialog *const dialog =
+ dynamic_cast<CharSelectDialog*>(mCurrentDialog);
+ if (dialog != nullptr)
+ pincodeManager.updateState();
+}
+
void Client::logVars()
{
#ifdef ANDROID