mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Disable the 'install' button for the Linux runner.
You probably don't need to do this.
This commit is contained in:
parent
fb7600318b
commit
b75c800d43
|
@ -80,6 +80,7 @@ class RunnerBox(Gtk.Box):
|
|||
_button = Gtk.Button.new_from_icon_name("system-software-install-symbolic", Gtk.IconSize.BUTTON)
|
||||
_button.get_style_context().add_class("circular")
|
||||
_button.connect("clicked", self.on_install_clicked)
|
||||
_button.set_sensitive(not self.runner.is_installed())
|
||||
_button.show()
|
||||
return _button
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
import os
|
||||
import stat
|
||||
from gettext import gettext as _
|
||||
from typing import Callable
|
||||
|
||||
# Lutris Modules
|
||||
from lutris.exceptions import GameConfigError, MissingExecutableError
|
||||
|
@ -126,6 +127,12 @@ class linux(Runner):
|
|||
"""Well of course Linux is installed, you're using Linux right ?"""
|
||||
return True
|
||||
|
||||
def can_uninstall(self):
|
||||
return False
|
||||
|
||||
def uninstall(self, uninstall_callback: Callable[[], None]) -> None:
|
||||
raise RuntimeError("Linux shouldn't be installed.")
|
||||
|
||||
def get_launch_config_command(self, gameplay_info, launch_config):
|
||||
# The linux runner has no command (by default) beyond the 'exe' itself;
|
||||
# so the command in gameplay_info is discarded.
|
||||
|
|
Loading…
Reference in a new issue