MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / MainWindow

Method MainWindow

Telegram/SourceFiles/platform/win/main_window_win.cpp:383–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383MainWindow::MainWindow(not_null<Window::Controller*> controller)
384: Window::MainWindow(controller)
385, _private(std::make_unique<Private>(this))
386, _taskbarHiderWindow(std::make_unique<QWindow>()) {
387 qApp->installNativeEventFilter(&_private->filter);
388
389 setupNativeWindowFrame();
390
391 SetWindowPriority(this, controller->isPrimary() ? 2 : 1);
392
393 using namespace rpl::mappers;
394 Core::App().appDeactivatedValue(
395 ) | rpl::distinct_until_changed(
396 ) | rpl::filter(_1) | rpl::on_next([=] {
397 _lastDeactivateTime = crl::now();
398 }, lifetime());
399
400 setupPreviewPasscodeLock();
401}
402
403void MainWindow::setupPreviewPasscodeLock() {
404 Core::App().passcodeLockValue(

Callers

nothing calls this directly

Calls 4

SetWindowPriorityFunction · 0.85
AppClass · 0.85
appDeactivatedValueMethod · 0.80
isPrimaryMethod · 0.45

Tested by

no test coverage detected