FIX: fix can't send file with cloud

JIRA: STUDIO-9195

Change-Id: I688b93032a99827a8a75febd33b45a2ba260acde
(cherry picked from commit 820b3fe4f6a0cb7db873d11c89399033f827091f)
This commit is contained in:
Kunlong Ma
2024-12-19 22:35:28 +08:00
committed by Noisyfox
parent 1e44033480
commit 8097ffab25

View File

@@ -584,7 +584,7 @@ void SendToPrinterDialog::update_storage_list(const std::vector<std::string>& st
} }
if (m_storage_radioBox.size() > 0) { if (m_storage_radioBox.size() > 0) {
m_storage_sizer->Add(0, 0, 0, wxEXPAND | wxLEFT, FromDIP(6)); m_storage_sizer->Add(0, 0, 0, wxEXPAND, FromDIP(6));
auto radio = m_storage_radioBox.front(); auto radio = m_storage_radioBox.front();
radio->SetValue(true); radio->SetValue(true);
} }
@@ -1473,18 +1473,14 @@ void SendToPrinterDialog::Enable_Send_Button(bool en)
m_button_ensure->Disable(); m_button_ensure->Disable();
m_button_ensure->SetBackgroundColor(wxColour(0x90, 0x90, 0x90)); m_button_ensure->SetBackgroundColor(wxColour(0x90, 0x90, 0x90));
m_button_ensure->SetBorderColor(wxColour(0x90, 0x90, 0x90)); m_button_ensure->SetBorderColor(wxColour(0x90, 0x90, 0x90));
} m_storage_panel->Hide();
if (!m_storage_radioBox.empty()) {
update_storage_list(std::vector<std::string>());
} }
} else { } else {
if (!m_button_ensure->IsEnabled()) { if (!m_button_ensure->IsEnabled()) {
m_button_ensure->Enable(); m_button_ensure->Enable();
m_button_ensure->SetBackgroundColor(btn_bg_enable); m_button_ensure->SetBackgroundColor(btn_bg_enable);
m_button_ensure->SetBorderColor(btn_bg_enable); m_button_ensure->SetBorderColor(btn_bg_enable);
} m_storage_panel->Show();
if (!m_ability_list.empty()) {
update_storage_list(m_ability_list);
} }
} }
} }