diff options
author | George Hazan <george.hazan@gmail.com> | 2024-05-06 17:17:00 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-05-06 17:17:00 +0300 |
commit | 98dadb56353e198ea6da9ce4b80d724180b0208c (patch) | |
tree | 9f37ec2677e3d6e72f5f0210be21ef2e93c1bfd5 /protocols | |
parent | 0aa422c1cbcef30f2d343c1c72b86cb7fb2f7140 (diff) |
fixes #4390 completely
Diffstat (limited to 'protocols')
-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);
|