diff options
| author | inglettronald <inglettronald@gmail.com> | 2023-01-11 03:32:07 -0600 |
|---|---|---|
| committer | inglettronald <inglettronald@gmail.com> | 2023-01-11 03:32:07 -0600 |
| commit | 65dcbf8dd3220464d6c30b6167ca73ba34109203 (patch) | |
| tree | 4ff510ace1c91dfc279e45c71a6988cccf2866f2 /src | |
| parent | 2d026e6ef276e58abc15a14dc2998bc754a8abeb (diff) | |
| download | DulkirMod-65dcbf8dd3220464d6c30b6167ca73ba34109203.tar.gz DulkirMod-65dcbf8dd3220464d6c30b6167ca73ba34109203.tar.bz2 DulkirMod-65dcbf8dd3220464d6c30b6167ca73ba34109203.zip | |
quick patch for empty tooltips to not render
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/kotlin/dulkirmod/features/ScalableTooltips.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt b/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt index ae53a3b..95e1941 100644 --- a/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt +++ b/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt @@ -27,6 +27,7 @@ object ScalableTooltips { ci: CallbackInfo ): Boolean { if(!Config.scaledTooltips) return false + if(textLines.isEmpty()) return true val scale = Config.tooltipSize // Calculate the width and height of the tooltip box |
