Skip to content

Commit

Permalink
gui: Utilize setter for 'file_preview' in x_fileselect_open()
Browse files Browse the repository at this point in the history
  • Loading branch information
vzh committed May 24, 2024
1 parent df9ad21 commit 250de63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libleptongui/src/x_fileselect.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ x_fileselect_open (GschemToplevel *w_current)
-1);
#endif

if (w_current->file_preview)
if (schematic_window_get_file_preview (w_current) == TRUE)
{
x_fileselect_add_preview (GTK_FILE_CHOOSER (dialog));
}
Expand Down

0 comments on commit 250de63

Please sign in to comment.