소스 검색

fix: init system proxy correctly

GyDi 2 년 전
부모
커밋
acff6d0432
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src-tauri/src/core/sysopt.rs

+ 1 - 1
src-tauri/src/core/sysopt.rs

@@ -75,7 +75,7 @@ impl Sysopt {
 
   /// update the system proxy
   pub fn update_sysproxy(&mut self) -> Result<()> {
-    if self.cur_sysproxy.is_none() {
+    if self.cur_sysproxy.is_none() || self.old_sysproxy.is_none() {
       return self.init_sysproxy();
     }