Skip to content

Commit

Permalink
fix Ctrl+S after Open
Browse files Browse the repository at this point in the history
  • Loading branch information
Azorlogh committed Jun 8, 2020
1 parent f964fc1 commit 9e41f9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Layout markers can be added by right clicking the cursor bar.

- Improve UI
- Selection
- Display errors on invalid input
- More feedback: display errors/warnings/infos
- Control note volume

## License
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ impl AppDelegate<State> for Delegate {
if let Ok(project_string) = fs::read_to_string(file_info.path()) {
if let Ok(project) = ron::from_str::<state::Project>(&project_string) {
project.open(&mut data.editors);
data.save_path = Some(Rc::new(file_info.path().into()));
ctx.submit_command(commands::REDRAW, Target::Global);
}
}
Expand Down

0 comments on commit 9e41f9c

Please sign in to comment.