[network/ruqola] src/widgets/room: Move to mCurrentRocketChatAccount check area

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 72d05c767d44ad89071150e40338350c325e41f2 by Laurent Montel.
Committed on 14/08/2026 at 21:18.
Pushed by mlaurent into branch 'master'.

Move to mCurrentRocketChatAccount check area

M  +1    -1    src/widgets/room/messagelineextratoolbutton.cpp

https://invent.kde.org/network/ruqola/-/commit/72d05c767d44ad89071150e40338350c325e41f2

diff --git a/src/widgets/room/messagelineextratoolbutton.cpp b/src/widgets/room/messagelineextratoolbutton.cpp
index f0de99375b..0e5c84a428 100644
--- a/src/widgets/room/messagelineextratoolbutton.cpp
+++ b/src/widgets/room/messagelineextratoolbutton.cpp
@@ -53,8 +53,8 @@ void MessageLineExtraToolButton::setCurrentRocketChatAccount(RocketChatAccount *
         connect(mCurrentRocketChatAccount, &RocketChatAccount::privateSettingsChanged, this, &MessageLineExtraToolButton::updateWebDavSupport);
         connect(mCurrentRocketChatAccount, &RocketChatAccount::publicSettingChanged, this, &MessageLineExtraToolButton::updateWebDavSupport);
         connect(mCurrentRocketChatAccount, &RocketChatAccount::serverVersionChanged, this, &MessageLineExtraToolButton::updateTimeStampSupport);
+        setVisible(mCurrentRocketChatAccount->hasAtLeastVersion(8, 0, 0));
     }
-    setVisible(mCurrentRocketChatAccount->hasAtLeastVersion(8, 0, 0));
 
     updateWebDavSupport();
     updateTimeStampSupport();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.