Skip to content

Commit

Permalink
don't force-refresh center view on side panel refresh (#18179)
Browse files Browse the repository at this point in the history
* don't force-refresh center view on side panel refresh

* refresh center if and only if in lighttable and it's empty
  • Loading branch information
ralfbrown authored Jan 22, 2025
1 parent b86e4fb commit 7ffe038
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2467,7 +2467,11 @@ static gboolean _side_panel_draw(GtkWidget *widget,
cairo_t *cr,
gpointer user_data)
{
if(darktable.gui->ui->thumbtable->manual_button.x != -1)
// in lighttable view, if there are no thumbs displayed in the center view, we have lines to
// modules which need to be updated as we expand and collapse modules in the side panels
if(darktable.collection
&& dt_view_get_current() == DT_VIEW_LIGHTTABLE
&& dt_collection_get_count(darktable.collection) == 0)
gtk_widget_queue_draw(darktable.gui->ui->center);
return FALSE;
}
Expand Down

0 comments on commit 7ffe038

Please sign in to comment.