mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-11 08:48:14 +00:00
Fixed starting with touchbar.
This commit is contained in:
parent
c83659f0c7
commit
3ef45f5431
@ -17,7 +17,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "history/history.h"
|
||||
#include "history/history_widget.h"
|
||||
#include "history/history_inner_widget.h"
|
||||
#include "main/main_account.h" // Account::sessionChanges.
|
||||
#include "main/main_account.h"
|
||||
#include "main/main_accounts.h" // Accounts::activeSessionValue
|
||||
#include "media/player/media_player_instance.h"
|
||||
#include "media/audio/media_audio.h"
|
||||
#include "storage/localstorage.h"
|
||||
@ -477,7 +478,7 @@ void MainWindow::initTouchBar() {
|
||||
return;
|
||||
}
|
||||
|
||||
account().sessionValue(
|
||||
Core::App().accounts().activeSessionValue(
|
||||
) | rpl::start_with_next([=](Main::Session *session) {
|
||||
if (session) {
|
||||
// We need only common pinned dialogs.
|
||||
|
@ -55,8 +55,8 @@ public:
|
||||
~Account();
|
||||
|
||||
[[nodiscard]] StartResult legacyStart(const QByteArray &passcode);
|
||||
[[nodiscard]] void start(MTP::AuthKeyPtr localKey);
|
||||
[[nodiscard]] void startAdded(MTP::AuthKeyPtr localKey);
|
||||
void start(MTP::AuthKeyPtr localKey);
|
||||
void startAdded(MTP::AuthKeyPtr localKey);
|
||||
[[nodiscard]] int oldMapVersion() const {
|
||||
return _oldMapVersion;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user