feat: refresh+start button

This commit is contained in:
2025-03-28 23:20:04 +00:00
parent 8ac45df3e1
commit 90f36e5fa6
4 changed files with 33 additions and 11 deletions

View File

@ -49,7 +49,7 @@ pub async fn start_check(state: State<'_, Mutex<AppData>>) -> Result<Vec<StartCh
}
#[tauri::command]
pub async fn startline(app: AppHandle) -> Result<(), String> {
pub async fn startline(app: AppHandle, refresh: bool) -> Result<(), String> {
log::debug!("invoke: startline");
let state = app.state::<Mutex<AppData>>();
@ -61,7 +61,7 @@ pub async fn startline(app: AppHandle) -> Result<(), String> {
}
if let Some(p) = &mut appd.profile {
log::debug!("{}", hash);
p.line_up(hash, app.clone()).await
p.line_up(hash, refresh, app.clone()).await
.map_err(|e| format!("Lineup failed:\n{}", e))?;
p.start(app.clone()).await
.map_err(|e| format!("Startup failed:\n{}", e))?;