- 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

@@ -94,7 +94,7 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
self.style_combo = FCComboBox()
self.style_combo.addItems(QtWidgets.QStyleFactory.keys())
# find current style
current_style = QtCore.QCoreApplication.instance().style().objectName()
current_style = QtWidgets.QApplication.style().objectName()
index = self.style_combo.findText(current_style, QtCore.Qt.MatchFlag.MatchFixedString)
self.style_combo.setCurrentIndex(index)
self.style_combo.activated.connect(self.handle_style)