1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00

Queue panel is always hidden in the local-local mode

Part of Bug 1893

Source commit: ae286a612042338a8cd02452a4b6c786b28170bf
This commit is contained in:
Martin Prikryl
2021-02-15 12:05:38 +00:00
parent 8a5b5fd149
commit c2c2596dc4
2 changed files with 8 additions and 5 deletions

View File

@@ -745,9 +745,10 @@ UnicodeString __fastcall TCustomScpExplorerForm::GetQueueProgressTitle()
void __fastcall TCustomScpExplorerForm::UpdateQueueView()
{
ComponentVisible[fcQueueView] =
(WinConfiguration->QueueView.Show == qvShow) ||
((WinConfiguration->QueueView.Show == qvHideWhenEmpty) &&
(FQueueStatus != NULL) && (FQueueStatus->Count > 0));
!IsLocalBrowserMode() &&
((WinConfiguration->QueueView.Show == qvShow) ||
((WinConfiguration->QueueView.Show == qvHideWhenEmpty) &&
(FQueueStatus != NULL) && (FQueueStatus->Count > 0)));
}
//---------------------------------------------------------------------------
void __fastcall TCustomScpExplorerForm::QueueChanged()

View File

@@ -482,9 +482,11 @@ void __fastcall TNonVisualDataModule::ExplorerActionsUpdate(
QueueItemSpeedAction->Text = SetSpeedLimit(reinterpret_cast<unsigned long>(AuxVoidPtr)),
QueueItemSpeedAction->Text = L"")
UPDACT(QueueToggleShowAction,
Action->Checked = ScpExplorer->ComponentVisible[fcQueueView])
Action->Checked = ScpExplorer->ComponentVisible[fcQueueView];
Action->Enabled = !ScpExplorer->IsLocalBrowserMode())
#define QUEUEACTION(SHOW) UPDACT(Queue ## SHOW ## Action, \
Action->Checked = WinConfiguration->QueueView.Show == qv ## SHOW)
Action->Checked = WinConfiguration->QueueView.Show == qv ## SHOW; \
Action->Enabled = !ScpExplorer->IsLocalBrowserMode())
QUEUEACTION(Show)
QUEUEACTION(HideWhenEmpty)
QUEUEACTION(Hide)