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

Moved ActivateWindow from HistoryWidget to single place.

This commit is contained in:
23rd
2020-06-13 15:49:21 +03:00
parent 42a2286230
commit 6ac9ef34eb
4 changed files with 14 additions and 16 deletions

View File

@@ -45,6 +45,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "facades.h"
#include "styles/style_window.h"
#include "styles/style_dialogs.h"
#include "ui/delayed_activation.h"
namespace Window {
namespace {
@@ -53,6 +54,12 @@ constexpr auto kMaxChatEntryHistorySize = 50;
} // namespace
void ActivateWindow(not_null<SessionController*> controller) {
const auto window = controller->widget();
window->activateWindow();
Ui::ActivateWindowDelayed(window);
}
DateClickHandler::DateClickHandler(Dialogs::Key chat, QDate date)
: _chat(chat)
, _date(date) {