mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +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"
|
||||
|
||||
// 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{
|
||||
|
|
Loading…
Add table
Reference in a new issue