From 3dd19fad7167f1807b4e4d907950f3e1a6a1a7d7 Mon Sep 17 00:00:00 2001 From: LAGonauta Date: Fri, 4 Dec 2020 18:41:50 -0300 Subject: [PATCH] Use last_index_of instead of index_of --- libdino/src/service/util.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdino/src/service/util.vala b/libdino/src/service/util.vala index c7af9243..59a08726 100644 --- a/libdino/src/service/util.vala +++ b/libdino/src/service/util.vala @@ -60,7 +60,7 @@ public class Util { #if _WIN32 string fileName = fileInfo.get_name(); int fileNameLength = fileName.length; - int extIndex = fileName.index_of("."); + int extIndex = fileName.last_index_of("."); if (extIndex < fileNameLength) { string extension = fileName.substring(extIndex, fileNameLength - extIndex);