Skip to content

Commit 4cb80c5

Browse files
committed
remove backup system
1 parent 4852711 commit 4cb80c5

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/Window.vala

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,6 @@ public class AppWindow : Gtk.Window {
8888
this.close_request.connect (() => {
8989
save_file ();
9090

91-
var backup = File.new_for_path (this.file.get_path () + "~");
92-
try {
93-
backup.delete ();
94-
} catch (Error err) {
95-
warning ("Couldn't delete the backup file: %s", err.message);
96-
}
97-
9891
return false;
9992
});
10093

@@ -147,7 +140,7 @@ public class AppWindow : Gtk.Window {
147140
dostream = new DataOutputStream (
148141
file.replace (
149142
null,
150-
true,
143+
false,
151144
GLib.FileCreateFlags.REPLACE_DESTINATION
152145
)
153146
);

0 commit comments

Comments
 (0)