fixup! feat: Service Mode for Linux (#804) (#815)

* fixup! feat: Service Mode for Linux (#804)

* fixup! feat: Service Mode for Linux (#804)

* Partially revert "fixup! feat: Service Mode for Linux (#804)"

This reverts commit e6a5a2b4961dba4e891b1b62d6f35db4ca9ee5ce.
This commit is contained in:
HZ is not Chatty 2024-04-01 19:25:58 +08:00 committed by GitHub
parent e95808e6be
commit 98536250bd

View File

@ -185,8 +185,6 @@ pub async fn patch_verge(patch: IVerge) -> Result<()> {
let tun_tray_icon = patch.tun_tray_icon;
match {
#[cfg(any(target_os = "windows", target_os = "linux"))]
{
let service_mode = patch.enable_service_mode;
if service_mode.is_some() {
@ -197,12 +195,6 @@ pub async fn patch_verge(patch: IVerge) -> Result<()> {
} else if tun_mode.is_some() {
update_core_config().await?;
}
}
#[cfg(not(target_os = "windows"))]
if tun_mode.is_some() {
update_core_config().await?;
}
if auto_launch.is_some() {
sysopt::Sysopt::global().update_launch()?;