mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Restart steam option (#82)
Adds options to start and stop steam when importing
This commit is contained in:
@@ -20,10 +20,17 @@ use std::error::Error;
|
||||
#[cfg(not(feature = "ui"))]
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn Error>> {
|
||||
|
||||
let settings = settings::Settings::new()?;
|
||||
if settings.steam.stop_steam{
|
||||
crate::steam::ensure_steam_stopped();
|
||||
}
|
||||
settings::Settings::write_config_if_missing();
|
||||
let usersinfo = sync::run_sync(&settings,&mut None).unwrap();
|
||||
sync::download_images(&settings,&usersinfo,&mut None).await;
|
||||
if settings.steam.start_steam{
|
||||
crate::steam::ensure_steam_started(&settings.steam);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user