2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

First version of CalendarBox is done.

Also moved BackgroundBox::Inner declaration inside backgroundbox.cpp
This commit is contained in:
John Preston
2017-03-07 17:03:07 +03:00
parent 6d80471fc9
commit ae977044f6
13 changed files with 600 additions and 78 deletions

View File

@@ -2293,7 +2293,7 @@ DialogsWidget::DialogsWidget(QWidget *parent) : TWidget(parent)
subscribe(Adaptive::Changed(), [this] { updateForwardBar(); });
_cancelSearch->setClickedCallback([this] { onCancelSearch(); });
_jumpToDate->entity()->setClickedCallback([this] { jumpToDate(); });
_jumpToDate->entity()->setClickedCallback([this] { if (_searchInPeer) App::main()->showJumpToDate(_searchInPeer); });
_lockUnlock->setVisible(Global::LocalPasscode());
subscribe(Global::RefLocalPasscodeChanged(), [this] { updateLockUnlockVisibility(); });
_lockUnlock->setClickedCallback([this] {
@@ -2348,10 +2348,6 @@ void DialogsWidget::activate() {
_inner->activate();
}
void DialogsWidget::jumpToDate() {
Ui::show(Box<InformBox>("not implemented"));
}
void DialogsWidget::createDialog(History *history) {
auto creating = !history->inChatList(Dialogs::Mode::All);
_inner->createDialog(history);