Use Dino.Util.get_content_type also on preview

This commit is contained in:
LAGonauta 2020-10-04 06:41:00 -03:00
parent 24890ca38a
commit 0b9bebd97e
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ public class FileImageWidget : EventBox {
if (image == null) throw new Error(-1, 0, "Error loading image");
FileInfo file_info = file.query_info("*", FileQueryInfoFlags.NONE);
string? mime_type = file_info.get_content_type();
string? mime_type = Dino.Util.get_content_type(file_info);
file_default_widget = new FileDefaultWidget() { valign=Align.END, vexpand=false };
file_default_widget.stack_event_box.visible = false;

View file

@ -50,7 +50,7 @@ public class FileSendOverlay : Gtk.EventBox {
private async void load_file_widget(File file, FileInfo file_info) {
string file_name = file_info.get_display_name();
string mime_type = file_info.get_content_type();
string mime_type = Dino.Util.get_content_type(file_info);
bool is_image = false;