2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 23:25:15 +00:00

Detach SystemMediaControls from Window::Controller.

This commit is contained in:
John Preston
2023-01-19 09:38:52 +04:00
parent 6b8f80bd63
commit cdfdccbb66
12 changed files with 67 additions and 53 deletions

View File

@@ -31,7 +31,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "main/main_account.h" // Account::sessionValue.
#include "main/main_domain.h"
#include "mainwidget.h"
#include "media/system_media_controls_manager.h"
#include "ui/boxes/confirm_box.h"
#include "boxes/connection_box.h"
#include "storage/storage_account.h"
@@ -126,11 +125,6 @@ void MainWindow::initHook() {
this,
[=] { checkActivation(); },
Qt::QueuedConnection);
if (Media::SystemMediaControlsManager::Supported()) {
using MediaManager = Media::SystemMediaControlsManager;
_mediaControlsManager = std::make_unique<MediaManager>(&controller());
}
}
void MainWindow::applyInitialWorkMode() {