- when changing the style for the decorations from Preferences, now change is applied immediately

This commit is contained in:
Marius Stanciu
2022-11-09 19:55:59 +02:00
committed by Marius
parent 9ec2ee2920
commit 8b4423dc0f
3 changed files with 9 additions and 0 deletions

View File

@@ -7,6 +7,10 @@ CHANGELOG for FlatCAM Evo beta
=================================================
9.11.2022
- when changing the style for the decorations from Preferences, now change is applied immediately
7.11.2022
- in Drilling Plugin fixed a situation when having tools with the same diameter will get them multiplied by the number of those tools

View File

@@ -157,6 +157,8 @@ if __name__ == '__main__':
idx = 0
style = QtWidgets.QStyleFactory.keys()[idx]
app.setStyle(style)
else:
app.setStyle('windowsvista')
fc = App(qapp=app)

View File

@@ -396,6 +396,9 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
qsettings = QSettings("Open Source", "FlatCAM")
qsettings.setValue('style', str(style))
new_style = QtWidgets.QStyleFactory.keys()[int(style)]
QtWidgets.QApplication.setStyle(new_style)
# This will write the setting to the platform specific storage.
del qsettings