mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 15:44:35 +01:00
Show wrench instantly on setting 3dmigoto
This commit is contained in:
@@ -97,7 +97,7 @@ pub fn install_location() -> String {
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn set_migoto_target(migoto_path: String) -> bool {
|
||||
pub fn set_migoto_target(window: tauri::Window, migoto_path: String) -> bool {
|
||||
let mut migoto_pathbuf = PathBuf::from(migoto_path);
|
||||
|
||||
migoto_pathbuf.pop();
|
||||
@@ -114,6 +114,8 @@ pub fn set_migoto_target(migoto_path: String) -> bool {
|
||||
}
|
||||
};
|
||||
|
||||
window.emit("migoto_set", &()).unwrap();
|
||||
|
||||
// Set options
|
||||
conf
|
||||
.with_section(Some("Loader"))
|
||||
|
||||
Reference in New Issue
Block a user