mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-12 06:41:03 +00:00
Tooltip: no longer needed to pass a screen explicitely
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user