- Isolation Plugin - if there is no object selected try to select the first one if there is any

- Fixed setting a new style
This commit is contained in:
Marius Stanciu
2021-08-05 22:16:10 +03:00
committed by Marius
parent 1d88491a18
commit 03618172d7
4 changed files with 8 additions and 3 deletions

View File

@@ -155,7 +155,8 @@ if __name__ == '__main__':
# apply style
settings = QSettings("Open Source", "FlatCAM")
if settings.contains("style"):
style = settings.value('style', type=str)
style_index = settings.value('style', type=str)
style = QtWidgets.QStyleFactory.keys()[int(style_index)]
app.setStyle(style)
fc = App(qapp=app)