Skip to content

Commit

Permalink
Merge pull request #995 from vrc-get/last-modified-on-open
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed May 19, 2024
2 parents dec49ae + ac7ffa1 commit c733b1b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-gui.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The format is based on [Keep a Changelog].
- Impossible to install for machine (for Windows) `#976`
- Japanese variant of CJK Ideograph is used for Simplified Chinese `#980`
- Since this version, ALCOM will always use `system-ui` font for all languages.
- Last modified is not updated on opening unity again `#995`

### Security

Expand Down
10 changes: 9 additions & 1 deletion vrc-get-gui/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2339,7 +2339,15 @@ async fn project_migrate_project_to_vpm(

#[tauri::command]
#[specta::specta]
async fn project_open_unity(project_path: String, unity_path: String) -> Result<(), RustError> {
async fn project_open_unity(
state: State<'_, Mutex<EnvironmentState>>,
project_path: String,
unity_path: String,
) -> Result<(), RustError> {
with_environment!(&state, |environment| {
update_project_last_modified(environment, project_path.as_ref()).await;
});

crate::cmd_start::start_command(
"Unity".as_ref(),
unity_path.as_ref(),
Expand Down

0 comments on commit c733b1b

Please sign in to comment.