Skip to content

Commit

Permalink
Pipeline GUI tab: show all modules in history
Browse files Browse the repository at this point in the history
Not just enabled modules. That's annoying to find out modules disappeared when switching tabs.
  • Loading branch information
aurelienpierre committed Jan 7, 2025
1 parent 626e5d9 commit c20462d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/libs/modulegroups.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,21 @@ static gboolean _lib_modulesgroups_search_active(const gchar *text_entered, dt_i
return is_handled;
}


static gboolean _is_module_in_history(const dt_iop_module_t *module)
{
for(GList *history = g_list_last(darktable.develop->history);
history;
history = g_list_previous(history))
{
const dt_dev_history_item_t *hitem = (dt_dev_history_item_t *)(history->data);
if(hitem->module == module) return TRUE;
}

return FALSE;
}


static void _lib_modulegroups_update_iop_visibility(dt_lib_module_t *self)
{
dt_lib_modulegroups_t *d = (dt_lib_modulegroups_t *)self->data;
Expand Down Expand Up @@ -381,7 +396,7 @@ static void _lib_modulegroups_update_iop_visibility(dt_lib_module_t *self)
{
case DT_MODULEGROUP_ACTIVE_PIPE:
{
if(module->enabled)
if(_is_module_in_history(module))
{
if(w) gtk_widget_show(w);
}
Expand Down

0 comments on commit c20462d

Please sign in to comment.