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

Method firstShow

Telegram/SourceFiles/window/main_window.cpp:754–768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752}
753
754void MainWindow::firstShow() {
755 updateMinimumSize();
756 if (initGeometryFromSystem()) {
757 show();
758 return;
759 }
760 const auto geometry = countInitialGeometry(initialPosition());
761 DEBUG_LOG(("Window Pos: Setting first %1, %2, %3, %4"
762 ).arg(geometry.x()
763 ).arg(geometry.y()
764 ).arg(geometry.width()
765 ).arg(geometry.height()));
766 setGeometry(geometry);
767 show();
768}
769
770void MainWindow::positionUpdated() {
771 _positionUpdatedTimer.callOnce(kSaveWindowPositionTimeout);

Callers 2

runMethod · 0.45

Calls 4

showFunction · 0.85
yMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected