mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
repaint tabs when text changes
This commit is contained in:
parent
3adec1ae89
commit
68227fa576
1 changed files with 6 additions and 2 deletions
|
@ -103,9 +103,13 @@ QString NotebookTab::getTitle() const
|
||||||
|
|
||||||
void NotebookTab::setTitle(const QString &newTitle)
|
void NotebookTab::setTitle(const QString &newTitle)
|
||||||
{
|
{
|
||||||
this->title = newTitle.toStdString();
|
auto stdTitle = newTitle.toStdString();
|
||||||
|
|
||||||
this->updateSize();
|
if (this->title != stdTitle) {
|
||||||
|
this->title = stdTitle;
|
||||||
|
this->updateSize();
|
||||||
|
this->update();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NotebookTab::isSelected() const
|
bool NotebookTab::isSelected() const
|
||||||
|
|
Loading…
Reference in a new issue