2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Move window_outdated_bar to td_ui subproject.

This commit is contained in:
John Preston
2022-02-22 15:50:19 +03:00
parent 280d79fecc
commit e4a7c01541
5 changed files with 33 additions and 29 deletions

View File

@@ -15,7 +15,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/history.h"
#include "window/window_session_controller.h"
#include "window/window_lock_widgets.h"
#include "window/window_outdated_bar.h"
#include "window/window_controller.h"
#include "main/main_account.h" // Account::sessionValue.
#include "core/application.h"
@@ -27,6 +26,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/crc32hash.h"
#include "ui/toast/toast.h"
#include "ui/widgets/shadow.h"
#include "ui/controls/window_outdated_bar.h"
#include "ui/ui_utility.h"
#include "apiwrap.h"
#include "mainwindow.h"
@@ -307,7 +307,7 @@ QImage WithSmallCounter(QImage image, CounterLayerArgs &&args) {
MainWindow::MainWindow(not_null<Controller*> controller)
: _controller(controller)
, _positionUpdatedTimer([=] { savePosition(); })
, _outdated(CreateOutdatedBar(body()))
, _outdated(Ui::CreateOutdatedBar(body(), cWorkingDir()))
, _body(body()) {
style::PaletteChanged(
) | rpl::start_with_next([=] {