Add setting to only show tabs with live channels (#4358)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Daniel Sage
2023-06-11 02:34:28 -07:00
committed by GitHub
parent c907f2b170
commit 4361790fbd
13 changed files with 412 additions and 136 deletions
+11 -3
View File
@@ -234,7 +234,7 @@ void NotebookTab::updateSize()
if (this->width() != width || this->height() != height)
{
this->resize(width, height);
this->notebook_->performLayout();
this->notebook_->refresh();
}
}
@@ -290,7 +290,7 @@ void NotebookTab::titleUpdated()
{
// Queue up save because: Tab title changed
getApp()->windows->queueSave();
this->notebook_->performLayout();
this->notebook_->refresh();
this->updateSize();
this->update();
}
@@ -327,13 +327,21 @@ void NotebookTab::setTabLocation(NotebookTabLocation location)
}
}
void NotebookTab::setLive(bool isLive)
bool NotebookTab::setLive(bool isLive)
{
if (this->isLive_ != isLive)
{
this->isLive_ = isLive;
this->update();
return true;
}
return false;
}
bool NotebookTab::isLive() const
{
return this->isLive_;
}
void NotebookTab::setHighlightState(HighlightState newHighlightStyle)