Skip to content

Commit ff04cb7

Browse files
committed
Do not create an empty dir when trying to read old settings
1 parent 634dcfb commit ff04cb7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/Todo.txt/TxtListManager.vala

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -354,14 +354,7 @@ class GOFI.TXT.LegacyTxtListImport {
354354
key_file = new KeyFile ();
355355
first_run = true;
356356

357-
if (!FileUtils.test (list_file, FileTest.EXISTS)) {
358-
int dir_exists = DirUtils.create_with_parents (
359-
config_dir, 0775
360-
);
361-
if (dir_exists != 0) {
362-
error (_("Couldn't create folder: %s"), config_dir);
363-
}
364-
} else {
357+
if (FileUtils.test (list_file, FileTest.EXISTS)) {
365358
// If it does exist, read existing values
366359
first_run = false;
367360
try {

0 commit comments

Comments
 (0)