mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Media::Player::Widget added instead of PlayerWidget.
New media player bar widget added. Switching between floating media player panel and media player widget. New volume controller.
This commit is contained in:
@@ -24,13 +24,13 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
||||
#include "styles/style_overview.h"
|
||||
#include "styles/style_history.h"
|
||||
#include "inline_bots/inline_bot_result.h"
|
||||
#include "media/media_audio.h"
|
||||
#include "media/media_clip_reader.h"
|
||||
#include "media/player/media_player_instance.h"
|
||||
#include "history/history_location_manager.h"
|
||||
#include "localstorage.h"
|
||||
#include "mainwidget.h"
|
||||
#include "lang.h"
|
||||
#include "playerwidget.h"
|
||||
|
||||
namespace InlineBots {
|
||||
namespace Layout {
|
||||
|
@@ -209,7 +209,7 @@ const DocumentItems *documentItems() {
|
||||
namespace internal {
|
||||
|
||||
void regDocumentItem(DocumentData *document, ItemBase *item) {
|
||||
documentItemsMap.makeIfNull();
|
||||
documentItemsMap.createIfNull();
|
||||
(*documentItemsMap)[document].insert(item);
|
||||
}
|
||||
|
||||
|
@@ -232,7 +232,7 @@ bool Result::onChoose(Layout::ItemBase *layout) {
|
||||
} else if (_document->loading()) {
|
||||
_document->cancel();
|
||||
} else {
|
||||
DocumentOpenClickHandler::doOpen(_document, ActionOnLoadNone);
|
||||
DocumentOpenClickHandler::doOpen(_document, nullptr, ActionOnLoadNone);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user