mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
minor addition to the last commit
This commit is contained in:
parent
abc2b9724f
commit
2ac9b4d0e7
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,7 @@ SplitHeader::SplitHeader(Split *_split)
|
|||
// mode button
|
||||
auto mode = layout.emplace<RippleEffectLabel>(this).assign(&this->modeButton);
|
||||
|
||||
mode->getLabel().setText("dank\nmemes");
|
||||
mode->hide();
|
||||
|
||||
// QObject::connect(mode.getElement(), &RippleEffectButton::clicked, this, [this]
|
||||
// {
|
||||
|
@ -230,6 +230,7 @@ void SplitHeader::updateModes()
|
|||
{
|
||||
TwitchChannel *tc = dynamic_cast<TwitchChannel *>(this->split->getChannel().get());
|
||||
if (tc == nullptr) {
|
||||
this->modeButton->hide();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -310,6 +311,7 @@ void SplitHeader::mouseReleaseEvent(QMouseEvent *event)
|
|||
widget->setAttribute(Qt::WA_DeleteOnClose);
|
||||
widget->move(pos);
|
||||
widget->show();
|
||||
widget->raise();
|
||||
|
||||
QTimer::singleShot(3000, widget, [this, widget] {
|
||||
widget->close();
|
||||
|
|
Loading…
Reference in a new issue