Skip to content

Commit

Permalink
Fix #245 Lang Text on_change trigger on language change
Browse files Browse the repository at this point in the history
  • Loading branch information
Insality committed Sep 6, 2023
1 parent 5ed9bdd commit 7fc76ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions druid/extended/lang_text.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function LangText.init(self, node, locale_id, adjust_type)
self.on_change = Event()

self:translate(locale_id or gui.get_text(self.node))
self.text.on_set_text:subscribe(self.on_change.trigger, self.on_change)

return self
end
Expand Down

0 comments on commit 7fc76ed

Please sign in to comment.