2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Section dummies for new Settings.

This commit is contained in:
John Preston
2018-09-05 22:05:49 +03:00
parent 4f16ad6757
commit f0d092f126
34 changed files with 823 additions and 18 deletions

View File

@@ -200,6 +200,8 @@ Dialogs::RowDescriptor WrapWidget::activeChat() const {
return Dialogs::RowDescriptor(App::history(peer), FullMsgId());
} else if (const auto feed = key().feed()) {
return Dialogs::RowDescriptor(feed, FullMsgId());
} else if (key().settingsSelf()) {
return Dialogs::RowDescriptor();
}
Unexpected("Owner in WrapWidget::activeChat().");
}
@@ -512,6 +514,10 @@ void WrapWidget::showProfileMenu() {
feed,
addAction,
Window::PeerMenuSource::Profile);
} else if (const auto self = key().settingsSelf()) {
// #TODO settings top menu
_topBarMenu = nullptr;
return;
} else {
_topBarMenu = nullptr;
return;