Skip to content

Commit

Permalink
fixed operation_name is not inherited from the old plugin instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Dec 22, 2023
1 parent c0458b9 commit 3af1cef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quick_backup_multi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,10 +679,11 @@ def register_event_listeners(server: PluginServerInterface):


def on_load(server: PluginServerInterface, old):
global operation_lock, HelpMessage, server_inst
global operation_lock, operation_name, HelpMessage, server_inst
server_inst = server
if hasattr(old, 'operation_lock') and type(old.operation_lock) == type(operation_lock):
operation_lock = old.operation_lock
operation_name = getattr(old, 'operation_name', operation_name)

meta = server.get_self_metadata()
HelpMessage = tr('help_message', Prefix, meta.name, meta.version)
Expand Down

0 comments on commit 3af1cef

Please sign in to comment.