mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
fixup! refactor: rename variables
This commit is contained in:
parent
783afeff1e
commit
813130ba6a
1 changed files with 2 additions and 4 deletions
|
@ -275,7 +275,7 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too
|
|||
btn = self._addButton(
|
||||
icon,
|
||||
cmd,
|
||||
tip=tip,
|
||||
title_attribute=tip,
|
||||
label=label,
|
||||
id=id,
|
||||
toggleable=toggleable,
|
||||
|
@ -288,15 +288,13 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too
|
|||
self,
|
||||
icon: str | None,
|
||||
cmd: str,
|
||||
tip: str = "",
|
||||
title_attribute: str = "",
|
||||
label: str = "",
|
||||
id: str | None = None,
|
||||
toggleable: bool = False,
|
||||
disables: bool = True,
|
||||
rightside: bool = True,
|
||||
) -> str:
|
||||
title_attribute = tip
|
||||
|
||||
if icon:
|
||||
if icon.startswith("qrc:/"):
|
||||
iconstr = icon
|
||||
|
|
Loading…
Reference in a new issue