Skip to content

Commit

Permalink
Do not create an empty dir when trying to read old settings
Browse files Browse the repository at this point in the history
  • Loading branch information
JMoerman committed Dec 9, 2020
1 parent 634dcfb commit ff04cb7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Todo.txt/TxtListManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -354,14 +354,7 @@ class GOFI.TXT.LegacyTxtListImport {
key_file = new KeyFile ();
first_run = true;

if (!FileUtils.test (list_file, FileTest.EXISTS)) {
int dir_exists = DirUtils.create_with_parents (
config_dir, 0775
);
if (dir_exists != 0) {
error (_("Couldn't create folder: %s"), config_dir);
}
} else {
if (FileUtils.test (list_file, FileTest.EXISTS)) {
// If it does exist, read existing values
first_run = false;
try {
Expand Down

0 comments on commit ff04cb7

Please sign in to comment.