Skip to content

Commit

Permalink
While in gimp mode only use darkroom
Browse files Browse the repository at this point in the history
dt_view_manager_switch_by_view() is a noop if we are in "--gimp file" mode, there is no gimp error so far
and we are already in darkroom mode.
  • Loading branch information
jenshannoschwalm committed Jan 30, 2024
1 parent aebded8 commit a589378
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/views/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ gboolean dt_view_manager_switch_by_view(dt_view_manager_t *vm,
dt_view_t *old_view = vm->current_view;
dt_view_t *new_view = (dt_view_t *)nv; // views belong to us, we can de-const them :-)

if(old_view
&& !strcmp(dt_view_manager_name(vm), "Darkroom")
&& dt_check_gimpmode("file")
&& !darktable.gimp.error)
return FALSE;
// reset the cursor to the default one
dt_control_change_cursor(GDK_LEFT_PTR);

Expand Down

0 comments on commit a589378

Please sign in to comment.