Skip to content

Commit

Permalink
Closes Issue #85: Reload marks the file as modified.
Browse files Browse the repository at this point in the history
- Changes behavior to automatically save the todo.txt file after the user issues the "reload file" command. This isn't necessary for file I/O purposes, but it makes it so the file is no longer marked as "Edited" in the title bar.
  • Loading branch information
mjdescy committed Mar 29, 2016
1 parent 696b768 commit 8da3dad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions TodoTxtMac/TTMDocument.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ - (id)windowWillReturnFieldEditor:(NSWindow *)sender toObject:(id)client {
return self.customFieldEditor;
}



#pragma mark - File Loading and Saving Methods

+ (BOOL)autosavesInPlace {
Expand Down Expand Up @@ -215,7 +213,7 @@ - (IBAction)reloadFile:(id)sender {
[self readFromURL:[self fileURL] ofType:@"TTMDocument" error:&error];

// Refresh the task list.
[self refreshTaskListWithSave:NO];
[self refreshTaskListWithSave:YES];

// Re-apply the filter active before the file was reloaded.
self.searchFieldPredicate = tempPredicate;
Expand Down
2 changes: 1 addition & 1 deletion TodoTxtMac/TodoTxtMac-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>2012</string>
<string>2013</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit 8da3dad

Please sign in to comment.