correctly populate Format for CONTEXT_PREVIEW
This commit is contained in:
parent
45bb0dd9f7
commit
a65b31fece
@ -2369,6 +2369,7 @@ byte Button_Load_or_Save(T_Selector_settings *settings, byte load, T_IO_Context
|
|||||||
T_IO_Context preview_context;
|
T_IO_Context preview_context;
|
||||||
|
|
||||||
Init_context_preview(&preview_context, Selector_filename, Selector->Directory);
|
Init_context_preview(&preview_context, Selector_filename, Selector->Directory);
|
||||||
|
preview_context.Format = Selector->Format_filter;
|
||||||
preview_context.File_name_unicode = Selector_filename_unicode;
|
preview_context.File_name_unicode = Selector_filename_unicode;
|
||||||
Hide_cursor();
|
Hide_cursor();
|
||||||
if (context->Type == CONTEXT_PALETTE)
|
if (context->Type == CONTEXT_PALETTE)
|
||||||
|
|||||||
@ -1267,7 +1267,6 @@ void Init_context_preview(T_IO_Context * context, char *file_name, char *file_di
|
|||||||
context->Type = CONTEXT_PREVIEW;
|
context->Type = CONTEXT_PREVIEW;
|
||||||
context->File_name = file_name;
|
context->File_name = file_name;
|
||||||
context->File_directory = file_directory;
|
context->File_directory = file_directory;
|
||||||
context->Format = Main.fileformat; // FIXME ?
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup for loading/saving an intermediate backup
|
// Setup for loading/saving an intermediate backup
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user