mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-09-17 01:43:15 +08:00
fix gui old layout
This commit is contained in:
parent
0a65e1b0d6
commit
6f99e220e5
@ -495,8 +495,15 @@ void BackgroundSlicingProcess::schedule_upload(Slic3r::PrintHostJob upload_job)
|
||||
|
||||
void BackgroundSlicingProcess::reset_export()
|
||||
{
|
||||
assert(! this->running());
|
||||
if (! this->running()) {
|
||||
bool running = true;
|
||||
{
|
||||
// I don't know if it's safe to let m_mutex be lock whiole doing invalidate_step.
|
||||
// if so, please remove the braces.
|
||||
std::unique_lock<std::mutex> lck(m_mutex);
|
||||
running = this->running();
|
||||
assert(!running);
|
||||
}
|
||||
if (!running) {
|
||||
m_export_path.clear();
|
||||
m_export_path_on_removable_media = false;
|
||||
// invalidate_step expects the mutex to be locked.
|
||||
|
@ -364,8 +364,6 @@ void MainFrame::update_layout()
|
||||
break;
|
||||
}case ESettingsLayout::Old:
|
||||
{
|
||||
// don't use view_toolbar here
|
||||
m_plater->enable_view_toolbar(false);
|
||||
//layout
|
||||
m_plater->Reparent(m_tabpanel);
|
||||
m_tabpanel->InsertPage(0, m_plater, _L("Plater"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user