Refresh parts list after preferences changed.

This commit is contained in:
leozide 2017-09-13 14:21:53 -07:00
parent be388d167b
commit 39241c8aad
2 changed files with 2 additions and 1 deletions

View file

@ -610,5 +610,6 @@ void lcApplication::ShowPreferencesDialog()
strcpy(opts.strHeader, m_strHeader);
*/
gMainWindow->SetShadingMode(Options.Preferences.mShadingMode);
gMainWindow->UpdateAllViews();
}

View file

@ -246,6 +246,7 @@ public:
void SetLockZ(bool LockZ);
void SetRelativeTransform(bool RelativeTransform);
void SetCurrentPieceInfo(PieceInfo* Info);
void SetShadingMode(lcShadingMode ShadingMode);
void NewProject();
bool OpenProject(const QString& FileName);
@ -318,7 +319,6 @@ protected:
void ShowUpdatesDialog();
void ShowAboutDialog();
void ShowPrintDialog();
void SetShadingMode(lcShadingMode ShadingMode);
lcModelTabWidget* GetTabWidgetForModel(lcModel* Model) const
{