fixup! refactor: rename variables

This commit is contained in:
David Culley 2024-07-11 00:31:49 +02:00
parent 783afeff1e
commit 813130ba6a
No known key found for this signature in database
GPG key ID: E6D8947E83ACCD4F

View file

@ -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