| 936 | } |
| 937 | |
| 938 | bool MainWindow::minimizeToTray() { |
| 939 | if (Core::Quitting() || !Core::App().tray().has()) { |
| 940 | return false; |
| 941 | } |
| 942 | |
| 943 | closeWithoutDestroy(); |
| 944 | controller().updateIsActiveBlur(); |
| 945 | updateGlobalMenu(); |
| 946 | return true; |
| 947 | } |
| 948 | |
| 949 | void MainWindow::showRightColumn(object_ptr<Ui::RpWidget> widget) { |
| 950 | const auto wasWidth = width(); |
no test coverage detected