feat(transfer): persist reusable transfer tasks
This commit is contained in:
1 parent
1a10db4c18
commit
05361eb40d
26 files changed
+2628
-241
No files matched your search
@@ -166,6 +166,19 @@ pub async fn save_saved_sql_editor_positions(
|
||||
state.storage.save_saved_sql_editor_positions(&positions).await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn load_transfer_task_library(state: State<'_, Arc<AppState>>) -> Result<Option<serde_json::Value>, String> {
|
||||
state.storage.load_transfer_task_library().await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn save_transfer_task_library(
|
||||
state: State<'_, Arc<AppState>>,
|
||||
library: serde_json::Value,
|
||||
) -> Result<(), String> {
|
||||
state.storage.save_transfer_task_library(&library).await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn load_native_debug_logs(app: AppHandle) -> Result<String, String> {
|
||||
let log_dir = app.path().app_log_dir().map_err(|e| e.to_string())?;
|
||||
|
||||
@@ -1579,6 +1579,8 @@ pub fn run() {
|
||||
commands::app_settings::save_open_tabs_state,
|
||||
commands::app_settings::load_saved_sql_editor_positions,
|
||||
commands::app_settings::save_saved_sql_editor_positions,
|
||||
commands::app_settings::load_transfer_task_library,
|
||||
commands::app_settings::save_transfer_task_library,
|
||||
commands::app_settings::load_native_debug_logs,
|
||||
commands::support_info::get_app_support_info,
|
||||
commands::cloud_sync::webdav_sync_test,
|
||||
|
||||
Reference in new issue
Block a user