Skip to content

Commit

Permalink
Disable user title
Browse files Browse the repository at this point in the history
  • Loading branch information
emorydunn committed Apr 11, 2024
1 parent ac54444 commit 8ebbf74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class DecrementAction: KeyAction {
PluginActionState(image: "Icons/actionDefaultImage", titleAlignment: .middle)
]

static var userTitleEnabled: Bool? = false

var context: String

var coordinates: StreamDeck.Coordinates?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class IncrementAction: KeyAction {
PluginActionState(image: "Icons/actionDefaultImage", titleAlignment: .middle)
]

static var userTitleEnabled: Bool? = false

var context: String

var coordinates: StreamDeck.Coordinates?
Expand All @@ -36,7 +38,7 @@ class IncrementAction: KeyAction {
self.coordinates = coordinates
}

func willAppear(device: String, payload: AppearEvent<NoSettings>) {
func willAppear(device: String, payload: AppearEvent<Settings>) {
log.log("Action appeared, setting title to \(self.count)")
setTitle(to: "\(count)", target: nil, state: nil)
}
Expand Down

0 comments on commit 8ebbf74

Please sign in to comment.