mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-16 13:52:34 +00:00
Scroll lists to top when switching between groups and actions
This commit is contained in:
@@ -310,6 +310,8 @@ module TAC
|
|||||||
end
|
end
|
||||||
|
|
||||||
def populate_groups_list
|
def populate_groups_list
|
||||||
|
@groups_list.scroll_top = 0
|
||||||
|
|
||||||
groups = []
|
groups = []
|
||||||
|
|
||||||
unless @options[:group_is_preset] || @options[:action_is_preset]
|
unless @options[:group_is_preset] || @options[:action_is_preset]
|
||||||
@@ -345,6 +347,8 @@ module TAC
|
|||||||
end
|
end
|
||||||
|
|
||||||
def populate_actions_list(group)
|
def populate_actions_list(group)
|
||||||
|
@actions_list.scroll_top = 0
|
||||||
|
|
||||||
actions = group.actions
|
actions = group.actions
|
||||||
|
|
||||||
@actions_list.clear do
|
@actions_list.clear do
|
||||||
@@ -384,6 +388,8 @@ module TAC
|
|||||||
end
|
end
|
||||||
|
|
||||||
def populate_variables_list(action)
|
def populate_variables_list(action)
|
||||||
|
@variables_list.scroll_top = 0
|
||||||
|
|
||||||
variables = action.variables
|
variables = action.variables
|
||||||
|
|
||||||
@variables_list.clear do
|
@variables_list.clear do
|
||||||
|
|||||||
Reference in New Issue
Block a user