Skip to content

Commit 3af1cef

Browse files
committed
fixed operation_name is not inherited from the old plugin instance
1 parent c0458b9 commit 3af1cef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

quick_backup_multi/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,10 +679,11 @@ def register_event_listeners(server: PluginServerInterface):
679679

680680

681681
def on_load(server: PluginServerInterface, old):
682-
global operation_lock, HelpMessage, server_inst
682+
global operation_lock, operation_name, HelpMessage, server_inst
683683
server_inst = server
684684
if hasattr(old, 'operation_lock') and type(old.operation_lock) == type(operation_lock):
685685
operation_lock = old.operation_lock
686+
operation_name = getattr(old, 'operation_name', operation_name)
686687

687688
meta = server.get_self_metadata()
688689
HelpMessage = tr('help_message', Prefix, meta.name, meta.version)

0 commit comments

Comments
 (0)