mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-19 19:25:56 +00:00
Prepare Manager 0.9.8 with isolated validation and SQUID module controls
This commit is contained in:
1 parent
dc3fcab7e1
commit
23cbb108ad
34 files changed
+791
-52
No files matched your search
@@ -723,6 +723,20 @@ async fn get_settings(
|
||||
blocking(move || config::load(&root, scope)).await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn server_logging_preset(
|
||||
state: State<'_, AppState>,
|
||||
id: String,
|
||||
preset: String,
|
||||
) -> std::result::Result<(), UiError> {
|
||||
let root = path_of(&state, &id)?;
|
||||
let _guard = BusyGuard::acquire(&state, &id)?;
|
||||
blocking(move || {
|
||||
let meta = meta_dir(&root)?;
|
||||
coa_core::server_logging::apply(&root, &meta, &preset)
|
||||
}).await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn save_settings(
|
||||
state: State<'_, AppState>,
|
||||
@@ -2921,6 +2935,7 @@ pub fn run() {
|
||||
.plugin(tauri_plugin_updater::Builder::new().build())
|
||||
.plugin(tauri_plugin_process::init())
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
server_logging_preset,
|
||||
release_history,
|
||||
default_install_dir,
|
||||
game_data_folder,
|
||||
|
||||
Reference in new issue
Block a user