mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-16 09:04:45 +01:00
Fix unix building
This commit is contained in:
@@ -341,7 +341,13 @@ fn restart_grasscutter(window: tauri::Window) -> bool {
|
||||
|
||||
#[cfg(unix)]
|
||||
#[tauri::command]
|
||||
fn restart_grasscutter(window: tauri::Window) {}
|
||||
fn restart_grasscutter(window: tauri::Window) {
|
||||
// Placeholder text for imports
|
||||
let s = System::new();
|
||||
if let Some(process) = s.process(Pid::from(1337)) {
|
||||
println!("{}", process.name());
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
#[tauri::command]
|
||||
|
||||
Reference in New Issue
Block a user