Skip to content

Commit

Permalink
Fix bug related to backup
Browse files Browse the repository at this point in the history
  • Loading branch information
jnooree authored and usr-sse2 committed Sep 21, 2020
1 parent fd72cbd commit f08d4df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RestoreSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ import Cocoa
let currBackupDir = RestoreSettingsItem.backupDir.appendingPathComponent(plistSpecificPath.first!).standardizedFileURL
let backupPlistFile = currBackupDir.appendingPathComponent(plistSpecificPath.last!).standardizedFileURL.path

if FileManager.default.fileExists(atPath: backupPlistFile) {
if FileManager.default.fileExists(atPath: backupPlistFile)
|| (!FileManager.default.fileExists(atPath: originalPlistPath)) {
return nil
}

Expand Down

0 comments on commit f08d4df

Please sign in to comment.