Fix issue that option visibility not updated after resetting (#9150)

Fix
https://github.com/SoftFever/OrcaSlicer/issues/8895#issuecomment-2764217763
This commit is contained in:
Noisyfox 2025-04-13 17:33:02 +08:00 committed by GitHub
parent ee07700aa7
commit 672a829cdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1100,9 +1100,13 @@ void Tab::on_roll_back_value(const bool to_sys /*= true*/)
// When all values are rolled, then we have to update whole tab in respect to the reverted values
update();
if (m_active_page)
m_active_page->update_visibility(m_mode, true);
// BBS: restore all pages in preset, update_dirty also update combobox
update_dirty();
m_page_view->GetParent()->Layout();
}
// Update the combo box label of the selected preset based on its "dirty" state,