diff options
-rw-r--r-- | protocols/Discord/src/options.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/Discord/src/options.cpp b/protocols/Discord/src/options.cpp index dc1c6eafa8..b11f0883f9 100644 --- a/protocols/Discord/src/options.cpp +++ b/protocols/Discord/src/options.cpp @@ -55,14 +55,13 @@ public: bool OnInitDialog() override
{
- if (mir_strlen(m_proto->m_szAccessToken)) {
+ if (m_proto->getMStringA(DB_KEY_TOKEN).IsEmpty())
+ btnLogout.Disable();
+ else {
m_edUserName.Disable();
m_edPassword.Disable();
}
- if (m_proto->getMStringA(DB_KEY_TOKEN).IsEmpty())
- btnLogout.Disable();
-
ptrW buf(m_proto->getWStringA(DB_KEY_PASSWORD));
if (buf)
m_edPassword.SetText(buf);
|