mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 16:27:54 -06:00
FIX: [STUDIO-2967] dowload model file not work
Change-Id: Ie4cc2d43f7078b505261f51bac4a34079e2d4836
This commit is contained in:
parent
81cb240dcc
commit
3b5ae871af
3 changed files with 5 additions and 2 deletions
|
@ -456,7 +456,7 @@ struct MediaProgressDialog : ProgressDialog
|
|||
std::function<void()> m_cancel;
|
||||
};
|
||||
|
||||
void Slic3r::GUI::MediaFilePanel::doAction(size_t index, int action)
|
||||
void MediaFilePanel::doAction(size_t index, int action)
|
||||
{
|
||||
auto fs = m_image_grid->GetFileSystem();
|
||||
if (action == 0) {
|
||||
|
@ -502,9 +502,9 @@ void Slic3r::GUI::MediaFilePanel::doAction(size_t index, int action)
|
|||
Slic3r::GUI::wxGetApp().plater()->update_print_required_data(config, model, plate_data_list, from_u8(file.name).ToStdString());
|
||||
wxPostEvent(Slic3r::GUI::wxGetApp().plater(), SimpleEvent(EVT_PRINT_FROM_SDCARD_VIEW));
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (index != -1) {
|
||||
auto &file = fs->GetFile(index);
|
||||
if (file.IsDownload() && file.progress >= -1) {
|
||||
|
|
|
@ -68,6 +68,8 @@ int ComboBox::GetSelection() const { return drop.GetSelection(); }
|
|||
|
||||
void ComboBox::SetSelection(int n)
|
||||
{
|
||||
if (n == drop.selection)
|
||||
return;
|
||||
drop.SetSelection(n);
|
||||
SetLabel(drop.GetValue());
|
||||
if (drop.selection >= 0)
|
||||
|
|
|
@ -95,6 +95,7 @@ void TextInput::SetLabel(const wxString& label)
|
|||
|
||||
void TextInput::SetIcon(const wxBitmap &icon)
|
||||
{
|
||||
this->icon = ScalableBitmap();
|
||||
this->icon.bmp() = icon;
|
||||
Rescale();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue