mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2024-11-23 11:59:48 +00:00
cleanup and yarn update
This commit is contained in:
parent
0ec8782f48
commit
4fc90ee333
@ -5,7 +5,6 @@ windows_subsystem = "windows"
|
|||||||
|
|
||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use std::{sync::Mutex, collections::HashMap};
|
use std::{sync::Mutex, collections::HashMap};
|
||||||
use std::path::PathBuf;
|
|
||||||
|
|
||||||
use std::thread;
|
use std::thread;
|
||||||
use sysinfo::{System, SystemExt};
|
use sysinfo::{System, SystemExt};
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
use duct::cmd;
|
use duct::cmd;
|
||||||
|
|
||||||
use crate::file_helpers;
|
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub fn run_program(path: String) {
|
pub fn run_program(path: String) {
|
||||||
// Open in new thread to prevent blocking.
|
// Open in new thread to prevent blocking.
|
||||||
|
@ -18,7 +18,7 @@ export async function toggleEncryption(path: string) {
|
|||||||
// Write file
|
// Write file
|
||||||
await fs.writeFile({
|
await fs.writeFile({
|
||||||
path,
|
path,
|
||||||
contents: JSON.stringify(serverConf)
|
contents: JSON.stringify(serverConf, null, 2),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user