We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 108f20d commit e34a1c9Copy full SHA for e34a1c9
scripts/devtools/menu/option/option.lua
@@ -140,13 +140,13 @@ end
140
--- Triggers when focused.
141
-- @tparam menu.TextMenu textmenu
142
function Option:OnCursor(textmenu)
143
- if self.data_sidebar then
144
- self.submenu:UpdateScreen(self.data_sidebar)
145
- end
146
-
147
if type(self.on_cursor_fn) == "function" or type(self.on_accept_fn) == "table" then
148
self.on_cursor_fn(self, self.submenu, textmenu)
149
end
+
+ if self.data_sidebar then
+ self.submenu:UpdateScreen(self.data_sidebar)
+ end
150
151
152
--- Triggers when cancelled.
0 commit comments