Don't show connecting spinner in secondary windows.

This commit is contained in:
John Preston 2022-06-16 12:25:37 +04:00
parent d353e11077
commit 3df7c71813

View file

@ -232,7 +232,9 @@ MainWidget::MainWidget(
, _history(std::in_place, this, _controller)
, _playerPlaylist(this, _controller)
, _changelogs(Core::Changelogs::Create(&controller->session())) {
setupConnectingWidget();
if (isPrimary()) {
setupConnectingWidget();
}
_history->cancelRequests(
) | rpl::start_with_next([=] {
@ -1898,7 +1900,9 @@ void MainWidget::orderWidgets() {
if (_thirdColumnResizeArea) {
_thirdColumnResizeArea->raise();
}
_connecting->raise();
if (_connecting) {
_connecting->raise();
}
floatPlayerRaiseAll();
_playerPlaylist->raise();
if (_player) {