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

Create notifications manager after reading settings.

This commit is contained in:
John Preston
2020-06-30 11:44:32 +04:00
parent 0db6fc4ffb
commit c3fa300b5c
3 changed files with 31 additions and 10 deletions

View File

@@ -18,6 +18,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "storage/storage_account.h"
#include "storage/localstorage.h"
#include "export/export_settings.h"
#include "window/notifications_manager.h"
#include "facades.h"
namespace Main {
@@ -28,6 +29,7 @@ Domain::Domain(const QString &dataName)
_active.changes(
) | rpl::take(1) | rpl::start_with_next([] {
Local::rewriteSettingsIfNeeded();
Core::App().notifications().createManager();
}, _lifetime);
}