Skip to content

Commit 88c9bc2

Browse files
committed
TaskManager: Use File.replace instead of File.replace_readwrite
1 parent 07fd35e commit 88c9bc2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Todo.txt/TaskManager.vala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,10 @@ class GOFI.TXT.TaskManager {
462462

463463
try {
464464
ensure_file_exists (file);
465-
var file_io_stream =
466-
file.replace_readwrite (null, true, FileCreateFlags.NONE);
465+
var file_out_stream =
466+
file.replace (null, true, FileCreateFlags.NONE);
467467
var stream_out =
468-
new DataOutputStream (file_io_stream.output_stream);
468+
new DataOutputStream (file_out_stream);
469469

470470
foreach (var store in stores) {
471471
write_tasks_to_stream (store, stream_out, lsettings.log_timer_in_txt);

0 commit comments

Comments
 (0)