fix: signal arguments

This commit is contained in:
aclist committed 2026-06-11 17:46:52 +09:00
1 parent ad85bb7343
commit 88270382f1
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
import gi import gi
gi.require_version("Gtk", "3.0") gi.require_version("Gtk", "3.0")
from gi.repository.Gtk import ListStore # noqa E402 from gi.repository.Gtk import ListStore # noqa E402
from gi.repository import Gdk, GObject # noqa E402 from gi.repository import Gdk, GObject # noqa E402
@@ -155,7 +156,7 @@ class Emitter(GObject.GObject):
def lan_page_initialized(self) -> None: def lan_page_initialized(self) -> None:
pass pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(object, str, bool)) @GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(object, str))
def custom_mods_loaded(self, store: "FastInsertListStore", folder: str) -> None: def custom_mods_loaded(self, store: "FastInsertListStore", folder: str) -> None:
pass pass
+2 -2
View File
@@ -199,7 +199,7 @@ class CustomModFrame(ModFrame):
self.custom_hbox.hide_label() self.custom_hbox.hide_label()
self.tree_vbox.hide() self.tree_vbox.hide()
def present_tree(self, folder: str, store: "FastInsertListStore") -> None: def present_tree(self, store: "FastInsertListStore", folder: str) -> None:
self.custom_hbox.set_label(folder) self.custom_hbox.set_label(folder)
self.tree.set_model(store) self.tree.set_model(store)
self.tree_vbox.show() self.tree_vbox.show()
@@ -214,7 +214,7 @@ class CustomModFrame(ModFrame):
if len(store) == 0: if len(store) == 0:
self.hide_tree() self.hide_tree()
else: else:
self.present_tree() self.present_tree(store, folder)
def _on_custom_button_clicked(self, button: Gtk.Button) -> None: def _on_custom_button_clicked(self, button: Gtk.Button) -> None:
local_mods = self.get_mods() local_mods = self.get_mods()