PLR2004: fix
This commit is contained in:
@@ -91,8 +91,11 @@ class Core:
|
||||
|
||||
|
||||
core = Core()
|
||||
# Constants
|
||||
GTK_VERSION_4 = 4
|
||||
|
||||
### from pynicotine.gtkgui.application import GTK_API_VERSION
|
||||
GTK_API_VERSION = 4
|
||||
GTK_API_VERSION = GTK_VERSION_4
|
||||
|
||||
## from pynicotine.gtkgui.application import GTK_GUI_FOLDER_PATH
|
||||
GTK_GUI_FOLDER_PATH = "assets"
|
||||
@@ -899,7 +902,7 @@ class Win32Implementation(BaseImplementation):
|
||||
def _load_ico_buffer(self, icon_name, icon_size):
|
||||
ico_buffer = b""
|
||||
|
||||
if GTK_API_VERSION >= 4:
|
||||
if GTK_API_VERSION >= GTK_VERSION_4:
|
||||
icon = ICON_THEME.lookup_icon(
|
||||
icon_name,
|
||||
fallbacks=None,
|
||||
|
||||
Reference in New Issue
Block a user