from gettext import gettext as _

from lutris.gui.config.common import GameDialogCommon


class EditGameConfigDialog(GameDialogCommon):
    """Game config edit dialog."""

    def __init__(self, parent, game):
        super().__init__(_("Configure %s") % game.name, parent=parent)
        self.game = game
        self.lutris_config = game.config
        self.slug = game.slug
        self.runner_name = game.runner_name
        self.build_notebook()
        self.build_tabs("game")
        self.build_action_area(self.on_save)
        self.show_all()
