mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-18 00:26:15 +00:00
Remember pre-existing trip expansion state when autogrouping
This just adds the "remember_tree_state()" and "restore_tree_state()" calls around the divelist update when autogrouping is turned on: that way existing expanded groups aren't blindly collapsed. It makes it much easier to see what autogrouping does if it only groups a few dives, because the overall state of the divelist isn't radically changed. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e544594d9b
commit
f175c1a9d7
1 changed files with 2 additions and 0 deletions
|
@ -980,7 +980,9 @@ static void autogroup_cb(GtkWidget *w, gpointer data)
|
|||
autogroup = !autogroup;
|
||||
if (! autogroup)
|
||||
remove_autogen_trips();
|
||||
remember_tree_state();
|
||||
dive_list_update_dives();
|
||||
restore_tree_state();
|
||||
}
|
||||
|
||||
void set_autogroup(gboolean value)
|
||||
|
|
Loading…
Add table
Reference in a new issue