Skip to content

Commit cd57f4f

Browse files
committed
Fix: added .spice to all files
1 parent 7c7fd0c commit cd57f4f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/Services/FileManager.vala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ public class Spice.Services.FileManager {
4646

4747
if (dialog.run () == Gtk.ResponseType.ACCEPT) {
4848
result = dialog.get_file ();
49-
var path = result.get_path ();
50-
if (!path.has_suffix (FILE_EXTENSION)) {
51-
result = File.new_for_path (path + FILE_EXTENSION);
52-
}
5349
}
5450

5551
dialog.close ();
@@ -98,6 +94,11 @@ public class Spice.Services.FileManager {
9894

9995
result = get_file_from_user (_("Save file"), _("Save"), Gtk.FileChooserAction.SAVE, filters);
10096

97+
var path = result.get_path ();
98+
if (!path.has_suffix (FILE_EXTENSION)) {
99+
result = File.new_for_path (path + FILE_EXTENSION);
100+
}
101+
101102
if (result != null) {
102103
settings.last_file = result.get_path ();
103104
}

0 commit comments

Comments
 (0)