2017-09-13 17:01:23 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-09-13 17:01:23 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-09-13 17:01:23 +00:00
|
|
|
*/
|
2017-09-30 18:26:45 +00:00
|
|
|
#include "info/info_layer_widget.h"
|
2017-09-13 17:01:23 +00:00
|
|
|
|
2017-09-30 18:26:45 +00:00
|
|
|
#include "info/info_content_widget.h"
|
2017-09-13 17:01:23 +00:00
|
|
|
#include "info/info_top_bar.h"
|
2017-09-30 18:26:45 +00:00
|
|
|
#include "info/info_memento.h"
|
2017-09-13 17:01:23 +00:00
|
|
|
#include "ui/rp_widget.h"
|
2017-09-25 16:06:53 +00:00
|
|
|
#include "ui/focus_persister.h"
|
2017-09-13 17:01:23 +00:00
|
|
|
#include "ui/widgets/buttons.h"
|
2020-10-13 15:11:53 +00:00
|
|
|
#include "ui/cached_round_corners.h"
|
2017-09-13 17:01:23 +00:00
|
|
|
#include "window/section_widget.h"
|
2019-06-06 10:21:40 +00:00
|
|
|
#include "window/window_session_controller.h"
|
2017-09-13 17:01:23 +00:00
|
|
|
#include "window/main_window.h"
|
2019-07-24 11:45:24 +00:00
|
|
|
#include "main/main_session.h"
|
2020-06-25 14:17:37 +00:00
|
|
|
#include "core/application.h"
|
2017-09-13 17:01:23 +00:00
|
|
|
#include "styles/style_info.h"
|
|
|
|
#include "styles/style_window.h"
|
2019-09-18 11:19:05 +00:00
|
|
|
#include "styles/style_layers.h"
|
2017-09-13 17:01:23 +00:00
|
|
|
|
|
|
|
namespace Info {
|
2017-09-19 10:32:34 +00:00
|
|
|
|
2017-09-30 18:26:45 +00:00
|
|
|
LayerWidget::LayerWidget(
|
2019-06-06 10:21:40 +00:00
|
|
|
not_null<Window::SessionController*> controller,
|
2017-09-13 17:01:23 +00:00
|
|
|
not_null<Memento*> memento)
|
2017-09-15 17:34:41 +00:00
|
|
|
: _controller(controller)
|
2017-09-30 18:26:45 +00:00
|
|
|
, _content(this, controller, Wrap::Layer, memento) {
|
2017-09-15 17:34:41 +00:00
|
|
|
setupHeightConsumers();
|
2020-06-25 14:17:37 +00:00
|
|
|
Core::App().replaceFloatPlayerDelegate(floatPlayerDelegate());
|
2017-09-15 17:34:41 +00:00
|
|
|
}
|
|
|
|
|
2017-09-30 18:26:45 +00:00
|
|
|
LayerWidget::LayerWidget(
|
2019-06-06 10:21:40 +00:00
|
|
|
not_null<Window::SessionController*> controller,
|
2017-09-15 17:34:41 +00:00
|
|
|
not_null<MoveMemento*> memento)
|
|
|
|
: _controller(controller)
|
2017-09-30 18:26:45 +00:00
|
|
|
, _content(memento->takeContent(this, Wrap::Layer)) {
|
2017-09-15 17:34:41 +00:00
|
|
|
setupHeightConsumers();
|
2020-06-25 14:17:37 +00:00
|
|
|
Core::App().replaceFloatPlayerDelegate(floatPlayerDelegate());
|
2018-11-05 13:18:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
auto LayerWidget::floatPlayerDelegate()
|
|
|
|
-> not_null<::Media::Player::FloatDelegate*> {
|
|
|
|
return static_cast<::Media::Player::FloatDelegate*>(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
not_null<Ui::RpWidget*> LayerWidget::floatPlayerWidget() {
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
2020-06-25 14:17:37 +00:00
|
|
|
auto LayerWidget::floatPlayerGetSection(Window::Column column)
|
|
|
|
-> not_null<::Media::Player::FloatSectionDelegate*> {
|
2018-12-04 07:19:28 +00:00
|
|
|
Expects(_content != nullptr);
|
|
|
|
|
2018-11-05 13:18:54 +00:00
|
|
|
return _content;
|
|
|
|
}
|
|
|
|
|
|
|
|
void LayerWidget::floatPlayerEnumerateSections(Fn<void(
|
2020-06-25 14:17:37 +00:00
|
|
|
not_null<::Media::Player::FloatSectionDelegate*> widget,
|
2018-11-05 13:18:54 +00:00
|
|
|
Window::Column widgetColumn)> callback) {
|
2018-12-04 07:19:28 +00:00
|
|
|
Expects(_content != nullptr);
|
|
|
|
|
2018-11-05 13:18:54 +00:00
|
|
|
callback(_content, Window::Column::Second);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool LayerWidget::floatPlayerIsVisible(not_null<HistoryItem*> item) {
|
|
|
|
return false;
|
2017-09-15 17:34:41 +00:00
|
|
|
}
|
|
|
|
|
2021-06-15 23:06:22 +00:00
|
|
|
void LayerWidget::floatPlayerDoubleClickEvent(
|
|
|
|
not_null<const HistoryItem*> item) {
|
|
|
|
_controller->showPeerHistoryAtItem(item);
|
|
|
|
}
|
|
|
|
|
2017-09-30 18:26:45 +00:00
|
|
|
void LayerWidget::setupHeightConsumers() {
|
2018-12-04 07:19:28 +00:00
|
|
|
Expects(_content != nullptr);
|
|
|
|
|
2017-12-22 07:05:20 +00:00
|
|
|
_content->scrollTillBottomChanges(
|
|
|
|
) | rpl::filter([this] {
|
2022-04-27 11:19:52 +00:00
|
|
|
if (!_inResize) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
_pendingResize = true;
|
|
|
|
return false;
|
2017-12-22 07:05:20 +00:00
|
|
|
}) | rpl::start_with_next([this] {
|
|
|
|
resizeToWidth(width());
|
|
|
|
}, lifetime());
|
2022-04-12 12:07:25 +00:00
|
|
|
|
|
|
|
_content->grabbingForExpanding(
|
|
|
|
) | rpl::start_with_next([=](bool grabbing) {
|
|
|
|
if (grabbing) {
|
|
|
|
_savedHeight = _contentHeight;
|
|
|
|
_savedHeightAnimation = base::take(_heightAnimation);
|
|
|
|
setContentHeight(_desiredHeight);
|
|
|
|
} else {
|
|
|
|
_heightAnimation = base::take(_savedHeightAnimation);
|
|
|
|
setContentHeight(_savedHeight);
|
|
|
|
}
|
|
|
|
}, lifetime());
|
|
|
|
|
2017-12-22 07:05:20 +00:00
|
|
|
_content->desiredHeightValue(
|
|
|
|
) | rpl::start_with_next([this](int height) {
|
2022-04-12 12:07:25 +00:00
|
|
|
if (!height) {
|
|
|
|
// New content arrived.
|
|
|
|
_heightAnimated = _heightAnimation.animating();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
std::swap(_desiredHeight, height);
|
|
|
|
if (!height
|
|
|
|
|| (_heightAnimated && !_heightAnimation.animating())) {
|
2022-04-14 13:29:40 +00:00
|
|
|
_heightAnimated = true;
|
2022-04-12 12:07:25 +00:00
|
|
|
setContentHeight(_desiredHeight);
|
|
|
|
} else {
|
|
|
|
_heightAnimated = true;
|
|
|
|
_heightAnimation.start([=] {
|
|
|
|
setContentHeight(_heightAnimation.value(_desiredHeight));
|
|
|
|
}, _contentHeight, _desiredHeight, st::slideDuration);
|
2017-11-23 12:48:56 +00:00
|
|
|
resizeToWidth(width());
|
2017-12-22 07:05:20 +00:00
|
|
|
}
|
|
|
|
}, lifetime());
|
2017-09-13 17:01:23 +00:00
|
|
|
}
|
|
|
|
|
2022-04-12 12:07:25 +00:00
|
|
|
void LayerWidget::setContentHeight(int height) {
|
|
|
|
if (_contentHeight == height) {
|
|
|
|
return;
|
|
|
|
}
|
2022-04-27 11:19:52 +00:00
|
|
|
|
2022-04-12 12:07:25 +00:00
|
|
|
_contentHeight = height;
|
2022-04-27 11:19:52 +00:00
|
|
|
if (_inResize) {
|
|
|
|
_pendingResize = true;
|
|
|
|
} else if (_content) {
|
2022-04-12 12:07:25 +00:00
|
|
|
resizeToWidth(width());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-30 18:26:45 +00:00
|
|
|
void LayerWidget::showFinished() {
|
2018-11-05 13:18:54 +00:00
|
|
|
floatPlayerShowVisible();
|
2017-09-13 17:01:23 +00:00
|
|
|
}
|
|
|
|
|
2017-09-30 18:26:45 +00:00
|
|
|
void LayerWidget::parentResized() {
|
2018-12-04 07:19:28 +00:00
|
|
|
if (!_content) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2017-09-13 17:01:23 +00:00
|
|
|
auto parentSize = parentWidget()->size();
|
2017-09-19 10:32:34 +00:00
|
|
|
auto parentWidth = parentSize.width();
|
|
|
|
if (parentWidth < MinimalSupportedWidth()) {
|
2017-09-25 16:06:53 +00:00
|
|
|
Ui::FocusPersister persister(this);
|
2018-12-04 07:19:28 +00:00
|
|
|
restoreFloatPlayerDelegate();
|
|
|
|
|
2020-12-14 14:48:10 +00:00
|
|
|
auto memento = std::make_shared<MoveMemento>(std::move(_content));
|
2018-12-04 07:19:28 +00:00
|
|
|
|
|
|
|
// We want to call hideSpecialLayer synchronously to avoid glitches,
|
|
|
|
// but we can't destroy LayerStackWidget from its' resizeEvent,
|
|
|
|
// because QWidget has such code for resizing:
|
|
|
|
//
|
|
|
|
// QResizeEvent e(r.size(), olds);
|
|
|
|
// QApplication::sendEvent(q, &e);
|
|
|
|
// if (q->windowHandle())
|
|
|
|
// q->update();
|
|
|
|
//
|
|
|
|
// So we call it queued. It would be cool to call it 'right after'
|
|
|
|
// the resize event handling was finished.
|
|
|
|
InvokeQueued(this, [=] {
|
|
|
|
_controller->hideSpecialLayer(anim::type::instant);
|
|
|
|
});
|
|
|
|
_controller->showSection(
|
2017-09-20 10:23:57 +00:00
|
|
|
std::move(memento),
|
2017-10-03 13:05:58 +00:00
|
|
|
Window::SectionShow(
|
|
|
|
Window::SectionShow::Way::Forward,
|
|
|
|
anim::type::instant,
|
|
|
|
anim::activation::background));
|
2017-12-06 07:05:18 +00:00
|
|
|
//
|
|
|
|
// There was a layout logic which caused layer info to become a
|
|
|
|
// third column info if the window size allows, but it was decided
|
|
|
|
// to keep layer info and third column info separated.
|
|
|
|
//
|
2017-12-04 07:33:33 +00:00
|
|
|
//} else if (_controller->canShowThirdSectionWithoutResize()) {
|
|
|
|
// takeToThirdSection();
|
2017-09-15 17:34:41 +00:00
|
|
|
} else {
|
|
|
|
auto newWidth = qMin(
|
2017-09-19 10:32:34 +00:00
|
|
|
parentWidth - 2 * st::infoMinimalLayerMargin,
|
2017-09-15 17:34:41 +00:00
|
|
|
st::infoDesiredWidth);
|
|
|
|
resizeToWidth(newWidth);
|
2017-09-13 17:01:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-30 18:26:45 +00:00
|
|
|
bool LayerWidget::takeToThirdSection() {
|
2017-12-04 07:33:33 +00:00
|
|
|
return false;
|
2017-12-06 07:05:18 +00:00
|
|
|
//
|
|
|
|
// There was a layout logic which caused layer info to become a
|
|
|
|
// third column info if the window size allows, but it was decided
|
|
|
|
// to keep layer info and third column info separated.
|
|
|
|
//
|
2017-12-04 07:33:33 +00:00
|
|
|
//Ui::FocusPersister persister(this);
|
|
|
|
//auto localCopy = _controller;
|
|
|
|
//auto memento = MoveMemento(std::move(_content));
|
|
|
|
//localCopy->hideSpecialLayer(anim::type::instant);
|
|
|
|
|
|
|
|
//// When creating third section in response to the window
|
|
|
|
//// size allowing it to fit without window resize we want
|
|
|
|
//// to save that we didn't extend the window while showing
|
|
|
|
//// the third section, so that when we close it we won't
|
|
|
|
//// shrink the window size.
|
|
|
|
////
|
|
|
|
//// See https://github.com/telegramdesktop/tdesktop/issues/4091
|
2020-06-08 09:06:50 +00:00
|
|
|
//localCopy->session()().settings().setThirdSectionExtendedBy(0);
|
2017-12-04 07:33:33 +00:00
|
|
|
|
2020-06-08 09:06:50 +00:00
|
|
|
//localCopy->session()().settings().setThirdSectionInfoEnabled(true);
|
|
|
|
//localCopy->session()().saveSettingsDelayed();
|
2017-12-04 07:33:33 +00:00
|
|
|
//localCopy->showSection(
|
|
|
|
// std::move(memento),
|
|
|
|
// Window::SectionShow(
|
|
|
|
// Window::SectionShow::Way::ClearStack,
|
|
|
|
// anim::type::instant,
|
|
|
|
// anim::activation::background));
|
|
|
|
//return true;
|
2017-09-19 10:32:34 +00:00
|
|
|
}
|
|
|
|
|
2017-10-03 13:05:58 +00:00
|
|
|
bool LayerWidget::showSectionInternal(
|
|
|
|
not_null<Window::SectionMemento*> memento,
|
|
|
|
const Window::SectionShow ¶ms) {
|
2018-12-04 07:19:28 +00:00
|
|
|
if (_content && _content->showInternal(memento, params)) {
|
2017-11-16 07:45:55 +00:00
|
|
|
if (params.activation != anim::activation::background) {
|
2022-06-09 03:37:46 +00:00
|
|
|
_controller->parentController()->hideLayer();
|
2017-11-16 07:45:55 +00:00
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
2017-10-03 13:05:58 +00:00
|
|
|
}
|
|
|
|
|
2018-09-12 16:14:11 +00:00
|
|
|
bool LayerWidget::closeByOutsideClick() const {
|
2018-12-04 07:19:28 +00:00
|
|
|
return _content ? _content->closeByOutsideClick() : true;
|
2018-09-12 16:14:11 +00:00
|
|
|
}
|
|
|
|
|
2017-09-30 18:26:45 +00:00
|
|
|
int LayerWidget::MinimalSupportedWidth() {
|
2018-12-04 07:19:28 +00:00
|
|
|
const auto minimalMargins = 2 * st::infoMinimalLayerMargin;
|
2017-09-15 17:34:41 +00:00
|
|
|
return st::infoMinimalWidth + minimalMargins;
|
|
|
|
}
|
|
|
|
|
2017-09-30 18:26:45 +00:00
|
|
|
int LayerWidget::resizeGetHeight(int newWidth) {
|
2022-05-23 10:35:39 +00:00
|
|
|
if (!parentWidget() || !_content || !newWidth) {
|
2017-09-15 17:34:41 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2022-05-05 05:32:12 +00:00
|
|
|
constexpr auto kMaxAttempts = 16;
|
2022-04-27 11:19:52 +00:00
|
|
|
auto attempts = 0;
|
|
|
|
while (true) {
|
|
|
|
_inResize = true;
|
|
|
|
const auto newGeometry = countGeometry(newWidth);
|
|
|
|
_inResize = false;
|
|
|
|
if (!_pendingResize) {
|
|
|
|
const auto oldGeometry = geometry();
|
|
|
|
if (newGeometry != oldGeometry) {
|
|
|
|
_content->forceContentRepaint();
|
|
|
|
}
|
|
|
|
if (newGeometry.topLeft() != oldGeometry.topLeft()) {
|
|
|
|
move(newGeometry.topLeft());
|
|
|
|
}
|
|
|
|
floatPlayerUpdatePositions();
|
|
|
|
return newGeometry.height();
|
|
|
|
}
|
|
|
|
_pendingResize = false;
|
|
|
|
Assert(attempts++ < kMaxAttempts);
|
|
|
|
}
|
|
|
|
}
|
2017-09-13 17:01:23 +00:00
|
|
|
|
2022-04-27 11:19:52 +00:00
|
|
|
QRect LayerWidget::countGeometry(int newWidth) {
|
2022-05-20 23:30:30 +00:00
|
|
|
const auto &parentSize = parentWidget()->size();
|
|
|
|
const auto windowWidth = parentSize.width();
|
|
|
|
const auto windowHeight = parentSize.height();
|
|
|
|
const auto newLeft = (windowWidth - newWidth) / 2;
|
|
|
|
const auto newTop = std::clamp(
|
2017-11-19 11:37:15 +00:00
|
|
|
windowHeight / 24,
|
|
|
|
st::infoLayerTopMinimal,
|
|
|
|
st::infoLayerTopMaximal);
|
2022-05-20 23:30:30 +00:00
|
|
|
const auto newBottom = newTop;
|
2022-02-09 10:43:07 +00:00
|
|
|
|
2022-05-20 23:30:30 +00:00
|
|
|
const auto bottomRadius = st::boxRadius;
|
2022-04-12 12:07:25 +00:00
|
|
|
// Top rounding is included in _contentHeight.
|
2022-05-20 23:30:30 +00:00
|
|
|
auto desiredHeight = _contentHeight + bottomRadius;
|
2017-11-23 12:48:56 +00:00
|
|
|
accumulate_min(desiredHeight, windowHeight - newTop - newBottom);
|
2017-09-13 17:01:23 +00:00
|
|
|
|
2017-09-30 18:26:45 +00:00
|
|
|
// First resize content to new width and get the new desired height.
|
2022-05-20 23:30:30 +00:00
|
|
|
const auto contentLeft = 0;
|
|
|
|
const auto contentTop = 0;
|
|
|
|
const auto contentBottom = bottomRadius;
|
|
|
|
const auto contentWidth = newWidth;
|
2017-11-23 12:48:56 +00:00
|
|
|
auto contentHeight = desiredHeight - contentTop - contentBottom;
|
2022-05-20 23:30:30 +00:00
|
|
|
const auto scrollTillBottom = _content->scrollTillBottom(contentHeight);
|
2022-05-23 11:45:43 +00:00
|
|
|
auto additionalScroll = std::min(scrollTillBottom, newBottom);
|
2017-11-23 12:48:56 +00:00
|
|
|
|
2022-04-12 12:07:25 +00:00
|
|
|
const auto expanding = (_desiredHeight > _contentHeight);
|
|
|
|
|
2017-11-23 12:48:56 +00:00
|
|
|
desiredHeight += additionalScroll;
|
|
|
|
contentHeight += additionalScroll;
|
|
|
|
_tillBottom = (newTop + desiredHeight >= windowHeight);
|
|
|
|
if (_tillBottom) {
|
|
|
|
additionalScroll += contentBottom;
|
|
|
|
}
|
2022-05-23 08:04:31 +00:00
|
|
|
_contentTillBottom = _tillBottom && !_content->scrollBottomSkip();
|
|
|
|
if (_contentTillBottom) {
|
|
|
|
contentHeight += contentBottom;
|
|
|
|
}
|
2017-11-23 12:48:56 +00:00
|
|
|
_content->updateGeometry({
|
|
|
|
contentLeft,
|
|
|
|
contentTop,
|
|
|
|
contentWidth,
|
2022-04-12 12:07:25 +00:00
|
|
|
contentHeight,
|
|
|
|
}, expanding, additionalScroll);
|
2017-11-23 12:48:56 +00:00
|
|
|
|
2022-04-27 11:19:52 +00:00
|
|
|
return QRect(newLeft, newTop, newWidth, desiredHeight);
|
2017-09-13 17:01:23 +00:00
|
|
|
}
|
|
|
|
|
2018-09-06 13:48:01 +00:00
|
|
|
void LayerWidget::doSetInnerFocus() {
|
2018-12-04 07:19:28 +00:00
|
|
|
if (_content) {
|
|
|
|
_content->setInnerFocus();
|
|
|
|
}
|
2018-09-06 13:48:01 +00:00
|
|
|
}
|
|
|
|
|
2017-09-30 18:26:45 +00:00
|
|
|
void LayerWidget::paintEvent(QPaintEvent *e) {
|
|
|
|
Painter p(this);
|
2017-11-19 11:37:15 +00:00
|
|
|
|
2022-02-23 10:53:27 +00:00
|
|
|
const auto clip = e->rect();
|
|
|
|
const auto radius = st::boxRadius;
|
2017-11-19 11:37:15 +00:00
|
|
|
auto parts = RectPart::None | 0;
|
2017-11-23 12:48:56 +00:00
|
|
|
if (!_tillBottom) {
|
2022-05-31 17:11:59 +00:00
|
|
|
const auto bottom = QRect{ 0, height() - radius, width(), radius };
|
|
|
|
if (clip.intersects(bottom)) {
|
|
|
|
if (const auto rounding = _content->bottomSkipRounding()) {
|
|
|
|
rounding->paint(p, rect(), RectPart::FullBottom);
|
|
|
|
} else {
|
|
|
|
parts |= RectPart::FullBottom;
|
|
|
|
}
|
2017-09-13 17:01:23 +00:00
|
|
|
}
|
2022-05-23 08:04:31 +00:00
|
|
|
} else if (!_contentTillBottom) {
|
2022-05-31 17:11:59 +00:00
|
|
|
const auto rounding = _content->bottomSkipRounding();
|
|
|
|
const auto &color = rounding ? rounding->color() : st::boxBg;
|
|
|
|
p.fillRect(0, height() - radius, width(), radius, color);
|
2017-11-19 11:37:15 +00:00
|
|
|
}
|
2022-02-23 10:53:27 +00:00
|
|
|
if (_content->animatingShow()) {
|
|
|
|
if (clip.intersects({ 0, 0, width(), radius })) {
|
|
|
|
parts |= RectPart::FullTop;
|
|
|
|
}
|
|
|
|
parts |= RectPart::Left | RectPart::Center | RectPart::Right;
|
|
|
|
}
|
2017-11-19 11:37:15 +00:00
|
|
|
if (parts) {
|
2020-10-13 15:11:53 +00:00
|
|
|
Ui::FillRoundRect(
|
2017-11-19 11:37:15 +00:00
|
|
|
p,
|
|
|
|
rect(),
|
|
|
|
st::boxBg,
|
2020-10-13 15:11:53 +00:00
|
|
|
Ui::BoxCorners,
|
2017-11-19 11:37:15 +00:00
|
|
|
nullptr,
|
|
|
|
parts);
|
2017-09-13 17:01:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-09 15:16:27 +00:00
|
|
|
void LayerWidget::restoreFloatPlayerDelegate() {
|
|
|
|
if (!_floatPlayerDelegateRestored) {
|
|
|
|
_floatPlayerDelegateRestored = true;
|
2020-06-25 14:17:37 +00:00
|
|
|
Core::App().restoreFloatPlayerDelegate(floatPlayerDelegate());
|
2018-11-09 15:16:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void LayerWidget::closeHook() {
|
|
|
|
restoreFloatPlayerDelegate();
|
|
|
|
}
|
|
|
|
|
2018-11-05 13:18:54 +00:00
|
|
|
LayerWidget::~LayerWidget() {
|
2022-01-27 12:48:51 +00:00
|
|
|
if (!Core::Quitting()) {
|
2018-11-10 08:06:44 +00:00
|
|
|
restoreFloatPlayerDelegate();
|
|
|
|
}
|
2018-11-05 13:18:54 +00:00
|
|
|
}
|
|
|
|
|
2017-09-13 17:01:23 +00:00
|
|
|
} // namespace Info
|