mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Update the codes to 01.01.00.10 for the formal release
1. first formal version of macos 2. add the bambu networking plugin install logic 3. auto compute the wipe volume when filament change 4. add the logic of wiping into support 5. refine the GUI layout and icons, improve the gui apperance in lots of small places 6. serveral improve to support 7. support AMS auto-mapping 8. disable lots of unstable features: such as params table, media file download, HMS 9. fix serveral kinds of bugs 10. update the document of building 11. ...
This commit is contained in:
@@ -163,7 +163,7 @@ void MediaFilePanel::SetMachineObject(MachineObject* obj)
|
||||
auto fs = m_image_grid->GetFileSystem();
|
||||
if (fs) {
|
||||
m_image_grid->SetFileSystem(nullptr);
|
||||
fs->Unbind(EVT_MODE_CHANGED, &MediaFilePanel::fileChanged, this);
|
||||
fs->Unbind(EVT_MODE_CHANGED, &MediaFilePanel::modeChanged, this);
|
||||
fs->Stop(true);
|
||||
}
|
||||
if (m_machine.empty()) {
|
||||
@@ -171,7 +171,7 @@ void MediaFilePanel::SetMachineObject(MachineObject* obj)
|
||||
} else {
|
||||
boost::shared_ptr<PrinterFileSystem> fs(new PrinterFileSystem);
|
||||
m_image_grid->SetFileSystem(fs);
|
||||
fs->Bind(EVT_MODE_CHANGED, &MediaFilePanel::fileChanged, this);
|
||||
fs->Bind(EVT_MODE_CHANGED, &MediaFilePanel::modeChanged, this);
|
||||
fs->Bind(EVT_STATUS_CHANGED, [this, wfs = boost::weak_ptr(fs)](auto &e) {
|
||||
boost::shared_ptr fs(wfs.lock());
|
||||
if (m_image_grid->GetFileSystem() != fs) // canceled
|
||||
@@ -183,6 +183,7 @@ void MediaFilePanel::SetMachineObject(MachineObject* obj)
|
||||
case PrinterFileSystem::Connecting: icon = m_bmp_loading.bmp(); msg = _L("Connecting..."); break;
|
||||
case PrinterFileSystem::Failed: icon = m_bmp_failed.bmp(); msg = _L("Connect failed [%d]!"); break;
|
||||
case PrinterFileSystem::ListSyncing: icon = m_bmp_loading.bmp(); msg = _L("Loading file list..."); break;
|
||||
case PrinterFileSystem::ListReady: icon = m_bmp_empty.bmp(); msg = _L("No files"); break;
|
||||
}
|
||||
if (fs->GetCount() == 0)
|
||||
m_image_grid->SetStatus(icon, msg);
|
||||
@@ -192,7 +193,7 @@ void MediaFilePanel::SetMachineObject(MachineObject* obj)
|
||||
if (IsShown()) fs->Start();
|
||||
}
|
||||
wxCommandEvent e(EVT_MODE_CHANGED);
|
||||
fileChanged(e);
|
||||
modeChanged(e);
|
||||
}
|
||||
|
||||
void MediaFilePanel::Rescale()
|
||||
@@ -218,12 +219,10 @@ void MediaFilePanel::Rescale()
|
||||
m_image_grid->Rescale();
|
||||
}
|
||||
|
||||
void MediaFilePanel::fileChanged(wxCommandEvent& e1)
|
||||
void MediaFilePanel::modeChanged(wxCommandEvent& e1)
|
||||
{
|
||||
e1.Skip();
|
||||
auto fs = m_image_grid->GetFileSystem();
|
||||
if (fs)
|
||||
m_image_grid->SetStatus(m_bmp_empty.bmp(), fs->GetCount() ? L"" : _L("No files"));
|
||||
auto mode = fs ? fs->GetGroupMode() : 0;
|
||||
if (m_last_mode == mode)
|
||||
return;
|
||||
@@ -247,7 +246,7 @@ void MediaFilePanel::fetchUrl(boost::weak_ptr<PrinterFileSystem> wfs)
|
||||
BOOST_LOG_TRIVIAL(info) << "MediaFilePanel::fetchUrl: camera_url: " << url;
|
||||
CallAfter([this, url, wfs] {
|
||||
boost::shared_ptr fs(wfs.lock());
|
||||
if (fs != m_image_grid->GetFileSystem()) return;
|
||||
if (!fs || fs != m_image_grid->GetFileSystem()) return;
|
||||
fs->SetUrl(url);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user