Fix: Plugins should bind a func list (#3390)

This commit is contained in:
LmeSzinc 2023-12-29 09:50:27 +08:00
parent 17e41a8bff
commit 108e0d7da9
2 changed files with 8 additions and 8 deletions

View File

@ -25,10 +25,10 @@ class FgoConfig(AzurLaneConfig, ConfigUpdater, GeneratedConfig):
self.save()
# @override
def bind(self, func, func_set=None):
if func_set is None:
func_set = {"Fpy"}
super().bind(func, func_set)
def bind(self, func, func_list=None):
if func_list is None:
func_list = ["Fpy"]
super().bind(func, func_list)
# @override
def save(self, mod_name="fpy"):

View File

@ -27,10 +27,10 @@ class ArknightsConfig(AzurLaneConfig, ConfigUpdater, GeneratedConfig):
self.task = task
self.save()
def bind(self, func, func_set=None):
if func_set is None:
func_set = {'Maa'}
super().bind(func, func_set)
def bind(self, func, func_list=None):
if func_list is None:
func_list = ['Maa']
super().bind(func, func_list)
def save(self, mod_name='maa'):
super().save(mod_name)