1
0
Fork 0
mirror of synced 2024-05-18 11:32:50 +12:00

Overlays: Reorder method assignments

This commit is contained in:
loathingKernel 2024-01-11 20:27:21 +02:00
parent bb5b0f1585
commit aadf795d21

View file

@ -31,8 +31,8 @@ class OverlayComboBox(QComboBox):
def __init__(self, parent=None):
super(OverlayComboBox, self).__init__(parent=parent)
self.valueChanged = self.currentIndexChanged
self.getValue = self.currentText
self.setValue = self.setCurrentText
self.getValue = self.currentText
def setDefault(self):
self.setCurrentIndex(0)
@ -122,7 +122,6 @@ class OverlaySettings(QGroupBox):
raise NotImplementedError
def update_settings(self):
if self.ui.show_overlay_combo.currentIndex() == 0:
# System default
config.remove_envvar(self.app_name, self.envvar_name)
@ -307,7 +306,6 @@ class MangoHudSettings(OverlaySettings):
config.set_envvar(self.app_name, "MANGOHUD_CONFIG", self.force_disabled)
elif state == ActivationStates.ENABLED:
mango_config = config.get_envvar(self.app_name, "MANGOHUD_CONFIG", fallback="")
split_config = mango_config.split(",")