Skip to content

Commit e4a126e

Browse files
committed
Fix zoomable layout when starting dt.
We need to initialize the current layout to something different than O which is the value for DT_LIGHTTABLE_LAYOUT_ZOOMABLE. Closes #19004.
1 parent 23c79c9 commit e4a126e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/views/lighttable.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,9 @@ static void _preview_set_state(dt_view_t *self,
633633
void init(dt_view_t *self)
634634
{
635635
self->data = calloc(1, sizeof(dt_library_t));
636+
dt_library_t *lib = self->data;
637+
638+
lib->current_layout = DT_LIGHTTABLE_LAYOUT_FIRST;
636639

637640
darktable.view_manager->proxy.lighttable.get_preview_state = _preview_get_state;
638641
darktable.view_manager->proxy.lighttable.set_preview_state = _preview_set_state;

0 commit comments

Comments
 (0)