mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed starting with touchbar.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user