1
0
Fork 0
mirror of synced 2024-05-20 04:22:58 +12:00
Rare/rare/components/tabs/settings/settings.py
loathingKernel cd1743cb92 GameSettings: Re-strucure settings widgets
The default widgets only implement the settings for the `default` "app_name"
The game specific widgets sub-class the default widgets and implement
whatever they additionally need locally.

Remove multiple calls to save config and save when the game settings gets hidden.
2024-02-12 21:52:07 +02:00

25 lines
797 B
Python

from logging import getLogger
from .widgets.env_vars import EnvVars
from .widgets.game import GameSettingsBase
from .widgets.launch import LaunchSettingsBase
from .widgets.overlay import MangoHudSettings, DxvkSettings
from .widgets.proton import ProtonSettings
from .widgets.wine import WineSettings
from .widgets.wrappers import WrapperSettings
logger = getLogger("GameSettings")
class LaunchSettings(LaunchSettingsBase):
def __init__(self, parent=None):
super(LaunchSettings, self).__init__(WrapperSettings, parent=parent)
class GameSettings(GameSettingsBase):
def __init__(self, parent=None):
super(GameSettings, self).__init__(
LaunchSettings, WineSettings, ProtonSettings, DxvkSettings, MangoHudSettings, EnvVars,
parent=parent
)