fix: hide IV in streamer mode

This commit is contained in:
AlexeyZavar 2024-04-19 02:08:15 +03:00
parent 7d57e52469
commit b054093899

View file

@ -41,6 +41,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/call_delayed.h"
// AyuGram includes
#include "ayu/features/streamer_mode/streamer_mode.h"
namespace Iv {
namespace {
@ -393,6 +397,11 @@ void Controller::createWebview(const QString &dataPath) {
Expects(!_webview);
const auto window = _window.get();
if (AyuFeatures::StreamerMode::isEnabled()) {
AyuFeatures::StreamerMode::hideWidgetWindow(window);
}
_webview = std::make_unique<Webview::Window>(
_container,
Webview::WindowConfig{