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(
|
btn = self._addButton(
|
||||||
icon,
|
icon,
|
||||||
cmd,
|
cmd,
|
||||||
tip=tip,
|
title_attribute=tip,
|
||||||
label=label,
|
label=label,
|
||||||
id=id,
|
id=id,
|
||||||
toggleable=toggleable,
|
toggleable=toggleable,
|
||||||
|
@ -288,15 +288,13 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too
|
||||||
self,
|
self,
|
||||||
icon: str | None,
|
icon: str | None,
|
||||||
cmd: str,
|
cmd: str,
|
||||||
tip: str = "",
|
title_attribute: str = "",
|
||||||
label: str = "",
|
label: str = "",
|
||||||
id: str | None = None,
|
id: str | None = None,
|
||||||
toggleable: bool = False,
|
toggleable: bool = False,
|
||||||
disables: bool = True,
|
disables: bool = True,
|
||||||
rightside: bool = True,
|
rightside: bool = True,
|
||||||
) -> str:
|
) -> str:
|
||||||
title_attribute = tip
|
|
||||||
|
|
||||||
if icon:
|
if icon:
|
||||||
if icon.startswith("qrc:/"):
|
if icon.startswith("qrc:/"):
|
||||||
iconstr = icon
|
iconstr = icon
|
||||||
|
|
Loading…
Reference in a new issue