diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2017-07-03 12:16:57 -0700 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2017-07-03 12:16:57 -0700 |
commit | a999003c5ac19c6748f39ef0c83848b37b799dc5 (patch) | |
tree | 167fb606035ce451d5cd7b7810b43d1ddd54518d /shell | |
parent | 98b05a3d5d05a2cd5c7d962b26692bfa9d229140 (diff) |
Do not select first item if reloading module
Diffstat (limited to 'shell')
-rw-r--r-- | shell/shell.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/shell/shell.c b/shell/shell.c index 10c87b3d..eb72f431 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -1396,11 +1396,13 @@ module_selected_show_info(ShellModuleEntry * entry, gboolean reload) g_key_file_free(key_file); g_free(key_data); - switch (shell->view_type) { - case SHELL_VIEW_DUAL: - case SHELL_VIEW_LOAD_GRAPH: - case SHELL_VIEW_PROGRESS_DUAL: - g_idle_add(select_first_item, NULL); + if (!reload) { + switch (shell->view_type) { + case SHELL_VIEW_DUAL: + case SHELL_VIEW_LOAD_GRAPH: + case SHELL_VIEW_PROGRESS_DUAL: + g_idle_add(select_first_item, NULL); + } } } |