Remove ignoring default for setting generation combobox

This commit is contained in:
Mizaki 2023-09-25 00:55:50 +01:00
parent 360a9e6308
commit 319aa582e5

View File

@ -232,7 +232,7 @@ def settings_to_talker_form(sources: Sources, config: settngs.Config[ct_ns]) ->
try:
if isinstance(value, str) and value and isinstance(widget, QtWidgets.QLineEdit) and not default:
widget.setText(value)
if isinstance(value, str) and value and isinstance(widget, QtWidgets.QComboBox) and not default:
if isinstance(value, str) and value and isinstance(widget, QtWidgets.QComboBox):
widget.setCurrentIndex(widget.findText(value))
if isinstance(value, (float, int)) and isinstance(
widget, (QtWidgets.QSpinBox, QtWidgets.QDoubleSpinBox)