Remove "Online Logs" functionality (#1649)
The /logs command will direct users to the /user command instead Changelog has been updated to reflect this change
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
#include "util/LayoutCreator.hpp"
|
||||
#include "util/PostToThread.hpp"
|
||||
#include "widgets/Label.hpp"
|
||||
#include "widgets/dialogs/LogsPopup.hpp"
|
||||
#include "widgets/helper/EffectLabel.hpp"
|
||||
#include "widgets/helper/Line.hpp"
|
||||
|
||||
@@ -113,8 +112,6 @@ UserInfoPopup::UserInfoPopup()
|
||||
user.emplace<QCheckBox>("Ignore").assign(&this->ui_.ignore);
|
||||
user.emplace<QCheckBox>("Ignore highlights")
|
||||
.assign(&this->ui_.ignoreHighlights);
|
||||
auto viewLogs = user.emplace<EffectLabel2>(this);
|
||||
viewLogs->getLabel().setText("Online logs");
|
||||
auto usercard = user.emplace<EffectLabel2>(this);
|
||||
usercard->getLabel().setText("Usercard");
|
||||
|
||||
@@ -127,15 +124,6 @@ UserInfoPopup::UserInfoPopup()
|
||||
|
||||
user->addStretch(1);
|
||||
|
||||
QObject::connect(viewLogs.getElement(), &Button::leftClicked, [this] {
|
||||
auto logs = new LogsPopup();
|
||||
logs->setChannel(this->channel_);
|
||||
logs->setTargetUserName(this->userName_);
|
||||
logs->getLogs();
|
||||
logs->setAttribute(Qt::WA_DeleteOnClose);
|
||||
logs->show();
|
||||
});
|
||||
|
||||
QObject::connect(usercard.getElement(), &Button::leftClicked, [this] {
|
||||
QDesktopServices::openUrl("https://www.twitch.tv/popout/" +
|
||||
this->channel_->getName() +
|
||||
|
||||
Reference in New Issue
Block a user