Merge pull request #306 from LorenDB/master

Add option for separate profiles
This commit is contained in:
DeepBlueV7.X 2020-10-24 18:08:42 +02:00 committed by GitHub
commit 592bf42640
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 69 additions and 24 deletions

View file

@ -272,7 +272,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
connect(room_list_,
SIGNAL(totalUnreadMessageCountUpdated(int)),
this,
SLOT(showUnreadMessageNotification(int)));
SIGNAL(unreadMessages(int)));
connect(text_input_,
&TextInputWidget::sendTextMessage,
@ -626,7 +626,7 @@ ChatPage::resetUI()
user_info_widget_->reset();
view_manager_->clearAll();
showUnreadMessageNotification(0);
emit unreadMessages(0);
}
void
@ -751,18 +751,6 @@ ChatPage::bootstrap(QString userid, QString homeserver, QString token)
tryInitialSync();
}
void
ChatPage::showUnreadMessageNotification(int count)
{
emit unreadMessages(count);
// TODO: Make the default title a const.
if (count == 0)
emit changeWindowTitle("nheko");
else
emit changeWindowTitle(QString("nheko (%1)").arg(count));
}
void
ChatPage::loadStateFromCache()
{