Cleanups
This commit is contained in:
@@ -25,7 +25,7 @@ from gi.repository import Adw, Gio, GLib, Gtk
|
|||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
# TODO use SGDBHelper
|
# TODO use SGDBHelper
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.game_cover import GameCover
|
from src.game_cover import GameCover
|
||||||
from src.utils.create_dialog import create_dialog
|
from src.utils.create_dialog import create_dialog
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ from time import time
|
|||||||
|
|
||||||
from gi.repository import Adw, Gio, Gtk
|
from gi.repository import Adw, Gio, Gtk
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
from src.game_cover import GameCover
|
from src.game_cover import GameCover
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import logging
|
|||||||
from gi.repository import Adw, Gio, Gtk
|
from gi.repository import Adw, Gio, Gtk
|
||||||
from requests import HTTPError
|
from requests import HTTPError
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
from src.utils.create_dialog import create_dialog
|
from src.utils.create_dialog import create_dialog
|
||||||
from src.utils.steamgriddb import SGDBAuthError, SGDBError, SGDBHelper
|
from src.utils.steamgriddb import SGDBAuthError, SGDBError, SGDBHelper
|
||||||
from src.utils.task import Task
|
from src.utils.task import Task
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ from pathlib import Path
|
|||||||
from sqlite3 import connect
|
from sqlite3 import connect
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.importer.sources.source import Source, SourceIterator
|
from src.importer.sources.source import Source, SourceIterator
|
||||||
from src.utils.decorators import replaced_by_path, replaced_by_schema_key
|
from src.utils.decorators import replaced_by_path, replaced_by_schema_key
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ from time import time
|
|||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
from src.utils.check_install import check_install
|
from src.utils.check_install import check_install
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ from hashlib import sha256
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
from src.utils.check_install import check_install
|
from src.utils.check_install import check_install
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ from time import time
|
|||||||
import requests
|
import requests
|
||||||
from gi.repository import GdkPixbuf, Gio
|
from gi.repository import GdkPixbuf, Gio
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
from src.utils.check_install import check_install
|
from src.utils.check_install import check_install
|
||||||
from src.utils.save_cover import resize_cover
|
from src.utils.save_cover import resize_cover
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ from shutil import copyfile
|
|||||||
from sqlite3 import connect
|
from sqlite3 import connect
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
from src.utils.check_install import check_install
|
from src.utils.check_install import check_install
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ from time import time
|
|||||||
import requests
|
import requests
|
||||||
from gi.repository import Gio
|
from gi.repository import Gio
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
from src.utils.check_install import check_install
|
from src.utils.check_install import check_install
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gi.require_version("Adw", "1")
|
|||||||
# pylint: disable=wrong-import-position
|
# pylint: disable=wrong-import-position
|
||||||
from gi.repository import Adw, Gio, GLib, Gtk
|
from gi.repository import Adw, Gio, GLib, Gtk
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
from src.details_window import DetailsWindow
|
from src.details_window import DetailsWindow
|
||||||
from src.importer.importer import Importer
|
from src.importer.importer import Importer
|
||||||
from src.importer.sources.lutris_source import LutrisFlatpakSource, LutrisNativeSource
|
from src.importer.sources.lutris_source import LutrisFlatpakSource, LutrisNativeSource
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ from pathlib import Path
|
|||||||
from gi.repository import Adw, Gio, GLib, Gtk
|
from gi.repository import Adw, Gio, GLib, Gtk
|
||||||
|
|
||||||
# pylint: disable=unused-import
|
# pylint: disable=unused-import
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
|
|
||||||
# TODO use the new sources
|
# TODO use the new sources
|
||||||
from src.importers.bottles_importer import bottles_installed
|
from src.importers.bottles_importer import bottles_installed
|
||||||
@@ -128,7 +128,7 @@ class PreferencesWindow(Adw.PreferencesWindow):
|
|||||||
if response == "choose_folder":
|
if response == "choose_folder":
|
||||||
self.choose_folder(widget, set_cache_dir)
|
self.choose_folder(widget, set_cache_dir)
|
||||||
|
|
||||||
if lutris_cache_exists(self.win, path):
|
if lutris_cache_exists(path):
|
||||||
self.import_changed = True
|
self.import_changed = True
|
||||||
self.set_subtitle(self, "lutris-cache")
|
self.set_subtitle(self, "lutris-cache")
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import src.shared as shared
|
from src import shared
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.store.managers.manager import Manager
|
from src.store.managers.manager import Manager
|
||||||
from src.store.managers.sgdb_manager import SGDBManager
|
from src.store.managers.sgdb_manager import SGDBManager
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class Manager:
|
|||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.cancellable = Gio.Cancellable()
|
self.cancellable = Gio.Cancellable()
|
||||||
self.errors = list()
|
self.errors = []
|
||||||
|
|
||||||
def cancel_tasks(self):
|
def cancel_tasks(self):
|
||||||
"""Cancel all tasks for this manager"""
|
"""Cancel all tasks for this manager"""
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ from typing import Iterable
|
|||||||
|
|
||||||
from gi.repository import GObject
|
from gi.repository import GObject
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
from src.store.managers.manager import Manager
|
from src.store.managers.manager import Manager
|
||||||
from src.utils.task import Task
|
from src.utils.task import Task
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ from pathlib import Path
|
|||||||
from os import PathLike, environ
|
from os import PathLike, environ
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
|
|
||||||
|
|
||||||
def replaced_by_path(override: PathLike): # Decorator builder
|
def replaced_by_path(override: PathLike): # Decorator builder
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
from gi.repository import Adw, GLib, Gtk
|
from gi.repository import Adw, GLib, Gtk
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
from .create_dialog import create_dialog
|
from .create_dialog import create_dialog
|
||||||
from .game import Game
|
from .game import Game
|
||||||
from .save_cover import resize_cover, save_cover
|
from .save_cover import resize_cover, save_cover
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ from shutil import copyfile
|
|||||||
from gi.repository import Gio
|
from gi.repository import Gio
|
||||||
from PIL import Image, ImageSequence
|
from PIL import Image, ImageSequence
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
|
|
||||||
|
|
||||||
def resize_cover(cover_path=None, pixbuf=None):
|
def resize_cover(cover_path=None, pixbuf=None):
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import requests
|
|||||||
from gi.repository import Gio
|
from gi.repository import Gio
|
||||||
from requests import HTTPError
|
from requests import HTTPError
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
from src.utils.create_dialog import create_dialog
|
from src.utils.create_dialog import create_dialog
|
||||||
from src.utils.save_cover import resize_cover, save_cover
|
from src.utils.save_cover import resize_cover, save_cover
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ from datetime import datetime
|
|||||||
|
|
||||||
from gi.repository import Adw, Gio, GLib, Gtk
|
from gi.repository import Adw, Gio, GLib, Gtk
|
||||||
|
|
||||||
import src.shared as shared
|
from src import shared
|
||||||
from src.game import Game
|
from src.game import Game
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user