forked from akanyan/STARTLINER
feat: refresh+start button
This commit is contained in:
@ -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))?;
|
||||
|
Reference in New Issue
Block a user