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

Method closeByBackButton

Telegram/SourceFiles/info/info_wrap_widget.cpp:1049–1059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1047}
1048
1049bool WrapWidget::closeByBackButton() {
1050 if (!hasStackHistory() && wrap() != Wrap::Layer) {
1051 return false;
1052 }
1053 checkBeforeCloseByEscape(hasStackHistory()
1054 ? Fn<void()>([=] { _controller->showBackFromStack(); })
1055 : Fn<void()>([=] {
1056 _controller->parentController()->hideSpecialLayer();
1057 }));
1058 return true;
1059}
1060
1061void WrapWidget::updateContentGeometry() {
1062 if (_content) {

Callers 1

showBackInternalMethod · 0.45

Calls 3

hideSpecialLayerMethod · 0.80
showBackFromStackMethod · 0.45
parentControllerMethod · 0.45

Tested by

no test coverage detected