forked from akanyan/STARTLINER
feat: start checks
This commit is contained in:
@ -2,7 +2,7 @@ use std::{path::PathBuf, process::Command};
|
||||
use yaml_rust2::YamlLoader;
|
||||
use anyhow::{Result, anyhow};
|
||||
use ini::Ini;
|
||||
use crate::model::config::{Network, NetworkType};
|
||||
use crate::model::profile::{Network, NetworkType};
|
||||
|
||||
impl Network {
|
||||
pub fn line_up(&self, ini: &mut Ini) -> Result<()> {
|
||||
@ -48,9 +48,10 @@ impl Network {
|
||||
cmd = Command::new("cmd.exe");
|
||||
cmd.arg("/C");
|
||||
|
||||
if self.local_console == true {
|
||||
cmd.arg("start");
|
||||
}
|
||||
// if self.local_console == true {
|
||||
cmd.arg("start");
|
||||
cmd.arg("/min");
|
||||
// }
|
||||
} else {
|
||||
cmd = Command::new("sh");
|
||||
}
|
||||
|
Reference in New Issue
Block a user