fix: signal arguments

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

View File

@ -1,6 +1,7 @@
from typing import TYPE_CHECKING
import gi
gi.require_version("Gtk", "3.0")
from gi.repository.Gtk import ListStore # noqa E402
from gi.repository import Gdk, GObject # noqa E402
@ -155,7 +156,7 @@ class Emitter(GObject.GObject):
def lan_page_initialized(self) -> None:
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:
pass

View File

@ -199,7 +199,7 @@ class CustomModFrame(ModFrame):
self.custom_hbox.hide_label()
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.tree.set_model(store)
self.tree_vbox.show()
@ -214,7 +214,7 @@ class CustomModFrame(ModFrame):
if len(store) == 0:
self.hide_tree()
else:
self.present_tree()
self.present_tree(store, folder)
def _on_custom_button_clicked(self, button: Gtk.Button) -> None:
local_mods = self.get_mods()