Skip to content

Commit

Permalink
Fixes crash on startup when the Koffee AppData folder does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstermiller committed Nov 16, 2019
1 parent c182c2a commit 7d0e4b2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Release Notes

### 0.5.0 Recursive Search (WIP)
### 0.5.1 (2019-11-15)
- #75 Fixes crash on startup when the Koffee AppData folder does not exist

### 0.5.0 Recursive Search (2019-11-11)
- #54 Adds path suggestions as you type in the path box
- #51 Changes Find to a "Starts with" jump
- #73 Changes Search to filter as you type, moves case-sensitivity setting to search panel, makes Regex searching
Expand Down
4 changes: 2 additions & 2 deletions src/Koffee/AssemblyInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ open System.Runtime.InteropServices
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [<assembly: AssemblyVersion("1.0.*")>]
[<assembly: AssemblyVersion("0.5.0")>]
[<assembly: AssemblyFileVersion("0.5.0")>]
[<assembly: AssemblyVersion("0.5.1")>]
[<assembly: AssemblyFileVersion("0.5.1")>]

do
()
3 changes: 3 additions & 0 deletions src/Koffee/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ let logError isCrash (e: exn) =

let run args =
let options = parseArgs (Array.toList args)
let dir = Path.KoffeeData.Format Windows
if not (Directory.Exists dir) then
Directory.CreateDirectory dir |> ignore
let defaultConfig, defaultHistory = loadOldConfig () |? (Config.Default, History.Default)
use config = new ConfigFile(defaultConfig)
use history = new HistoryFile(defaultHistory)
Expand Down

0 comments on commit 7d0e4b2

Please sign in to comment.