2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Remove app.h / facades.h from precompiled header.

This commit is contained in:
John Preston
2019-09-13 09:06:02 +03:00
parent a87529b8c9
commit 0c713a930a
285 changed files with 1086 additions and 679 deletions

View File

@@ -96,6 +96,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "storage/storage_facade.h"
#include "storage/storage_shared_media.h"
#include "storage/storage_user_photos.h"
#include "app.h"
#include "facades.h"
#include "styles/style_dialogs.h"
#include "styles/style_history.h"
#include "styles/style_boxes.h"
@@ -4622,3 +4624,14 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
}
}
namespace App {
MainWidget *main() {
if (const auto window = wnd()) {
return window->mainWidget();
}
return nullptr;
}
} // namespace App