mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
fix: hide IV in streamer mode
This commit is contained in:
parent
7d57e52469
commit
b054093899
1 changed files with 9 additions and 0 deletions
|
@ -41,6 +41,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
|
|
||||||
#include "base/call_delayed.h"
|
#include "base/call_delayed.h"
|
||||||
|
|
||||||
|
// AyuGram includes
|
||||||
|
#include "ayu/features/streamer_mode/streamer_mode.h"
|
||||||
|
|
||||||
|
|
||||||
namespace Iv {
|
namespace Iv {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
@ -393,6 +397,11 @@ void Controller::createWebview(const QString &dataPath) {
|
||||||
Expects(!_webview);
|
Expects(!_webview);
|
||||||
|
|
||||||
const auto window = _window.get();
|
const auto window = _window.get();
|
||||||
|
|
||||||
|
if (AyuFeatures::StreamerMode::isEnabled()) {
|
||||||
|
AyuFeatures::StreamerMode::hideWidgetWindow(window);
|
||||||
|
}
|
||||||
|
|
||||||
_webview = std::make_unique<Webview::Window>(
|
_webview = std::make_unique<Webview::Window>(
|
||||||
_container,
|
_container,
|
||||||
Webview::WindowConfig{
|
Webview::WindowConfig{
|
||||||
|
|
Loading…
Add table
Reference in a new issue