Skip to content

Commit

Permalink
fix arenacomponentnumber name error
Browse files Browse the repository at this point in the history
  • Loading branch information
pur1fying committed Aug 25, 2024
1 parent 922acbf commit 26c5230
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions core/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ def notify(title=None, body=None):
icon=root_path + icon_path,
)


def toast(title=None, body=None, button=None, duration=None):
root_path = get_root_path()
return _toast(
title=title,
body=body,
app_id='BlueArchiveAutoScript.exe',
icon=root_path + icon_path,
button=button,
button=button,
duration=duration
)

)
2 changes: 1 addition & 1 deletion gui/components/expand/arenaPriority.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ def __accept_2(self, _=None):

def __accept_3(self, _=None):
self.arena_component_number = int(self.input_3.currentText())
self.config.set('arenaComponentNumber', self.arena_component_number)
self.config.set('ArenaComponentNumber', self.arena_component_number)
notification.success(self.tr('设置成功'), f'{self.tr("你的对手编号设置为:")}{self.arena_component_number}', self.config)

0 comments on commit 26c5230

Please sign in to comment.