Fix: Stable update info polling (#872)
* adjusted sleep between polls to always sleep at least 2s * fixed tooltip formatting when no updates available --------- Co-authored-by: Mara <mara.dawn69@gmail.com>
This commit is contained in:
@@ -34,7 +34,7 @@ const processUpdateCount = (updateCount: string): string => {
|
||||
|
||||
const processUpdateTooltip = (updateTooltip: string, updateCount: Variable<string>): string => {
|
||||
const defaultTooltip = updateCount.get() + ' updates available';
|
||||
if (!extendedTooltip.get()) return defaultTooltip;
|
||||
if (!extendedTooltip.get() || !updateTooltip) return defaultTooltip;
|
||||
return defaultTooltip + '\n\n' + updateTooltip;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user