Skip to content

Commit

Permalink
lapiz-commands-search: don't move search dialog if it is visible
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Aug 16, 2024
1 parent 67823b8 commit 5a35c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lapiz/lapiz-commands-search.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ last_search_data_restore_position (LapizSearchDialog *dlg)

data = g_object_get_data (G_OBJECT (dlg), LAPIZ_LAST_SEARCH_DATA_KEY);

if (data != NULL)
if ((data != NULL) && (ctk_widget_get_visible (CTK_WIDGET (dlg)) == FALSE))
{
ctk_window_move (CTK_WINDOW (dlg),
data->x,
Expand Down

0 comments on commit 5a35c6f

Please sign in to comment.