diff options
author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-06-23 18:13:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-23 18:13:52 +0200 |
commit | cc291932906c38943e20cee29ee591695a9875b5 (patch) | |
tree | b7290d5ef35cd89fcd8f331ae4d70d0428301b0a /src/main/java/at/hannibal2/skyhanni/events | |
parent | 796bdf65f24057d170b91cc043a7fa8e024905ad (diff) | |
download | skyhanni-cc291932906c38943e20cee29ee591695a9875b5.tar.gz skyhanni-cc291932906c38943e20cee29ee591695a9875b5.tar.bz2 skyhanni-cc291932906c38943e20cee29ee591695a9875b5.zip |
Backend: Usage of TabWidget (#1240)
Co-authored-by: Cal <cwolfson58@gmail.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/WidgetUpdateEvent.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/WidgetUpdateEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/WidgetUpdateEvent.kt index 60300628f..a91e7dca3 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/WidgetUpdateEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/WidgetUpdateEvent.kt @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.events import at.hannibal2.skyhanni.data.model.TabWidget +import at.hannibal2.skyhanni.utils.LorenzUtils.isAnyOf /** The events get send on change of the widget and on island switch */ open class WidgetUpdateEvent( @@ -9,6 +10,7 @@ open class WidgetUpdateEvent( ) : LorenzEvent() { fun isWidget(widgetType: TabWidget) = widget == widgetType + fun isWidget(vararg widgetType: TabWidget) = widget.isAnyOf(*widgetType) fun isClear() = lines.isEmpty() } |