mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Remove migrate() from init dialog, already in Application
This commit is contained in:
parent
7a3884f4a1
commit
e2fee9f38a
|
@ -11,7 +11,6 @@ from gi.repository import Gdk, GLib, GObject, Gtk
|
|||
|
||||
from lutris import api, settings
|
||||
from lutris.gui.widgets.log_text_view import LogTextView
|
||||
from lutris.migrations import migrate
|
||||
from lutris.util import datapath
|
||||
from lutris.util.jobs import AsyncCall
|
||||
from lutris.util.log import logger
|
||||
|
@ -340,7 +339,6 @@ class LutrisInitDialog(Gtk.Dialog):
|
|||
return True
|
||||
|
||||
def run_init(self):
|
||||
migrate()
|
||||
self.runtime_updater.update_runtimes()
|
||||
|
||||
def init_cb(self, _result, error):
|
||||
|
|
|
@ -214,17 +214,17 @@ def version_sort(versions, reverse=False):
|
|||
return sorted(versions, key=version_key, reverse=reverse)
|
||||
|
||||
|
||||
def is_esync_limit_set()->bool:
|
||||
def is_esync_limit_set() -> bool:
|
||||
"""Checks if the number of files open is acceptable for esync usage."""
|
||||
return linux.LINUX_SYSTEM.has_enough_file_descriptors()
|
||||
|
||||
|
||||
def is_fsync_supported()->bool:
|
||||
def is_fsync_supported() -> bool:
|
||||
"""Checks if the running kernel has Valve's futex patch applied."""
|
||||
return fsync.get_fsync_support()
|
||||
|
||||
|
||||
def get_default_version()->str:
|
||||
def get_default_version() -> str:
|
||||
"""Return the default version of wine."""
|
||||
installed_versions = get_installed_wine_versions()
|
||||
if installed_versions:
|
||||
|
@ -234,7 +234,7 @@ def get_default_version()->str:
|
|||
if version in installed_versions:
|
||||
return version
|
||||
return installed_versions[0]
|
||||
return None
|
||||
return ""
|
||||
|
||||
|
||||
def get_system_wine_version(wine_path="wine"):
|
||||
|
|
Loading…
Reference in a new issue