Tooltip: no longer needed to pass a screen explicitely

This commit is contained in:
ItsLemmy
2025-11-17 22:02:10 -05:00
parent 81c0c302d4
commit 66770625dd
19 changed files with 59 additions and 60 deletions
+3 -3
View File
@@ -15,13 +15,13 @@ Singleton {
Tooltip {}
}
function show(screen, target, text, direction, delay, fontFamily) {
function show(target, text, direction, delay, fontFamily) {
if (!Settings.data.ui.tooltipsEnabled) {
return;
}
// Don't create if no text
if (!screen || !target || !text) {
if (!target || !text) {
Logger.i("Tooltip", "No target or text");
return;
}
@@ -78,7 +78,7 @@ Singleton {
});
// Show the tooltip
newTooltip.show(screen, target, text, direction || "auto", delay || Style.tooltipDelay, fontFamily);
newTooltip.show(target, text, direction || "auto", delay || Style.tooltipDelay, fontFamily);
return newTooltip;
} else {