fix: adjust something

This commit is contained in:
GyDi
2022-04-25 20:00:11 +08:00
committed by GitHub
parent 9319851118
commit c2d0ccea3c
4 changed files with 11 additions and 7 deletions

View File

@@ -22,8 +22,11 @@ pub fn resolve_setup(app: &App) {
pub fn resolve_reset(app_handle: &AppHandle) {
let core = app_handle.state::<Core>();
let mut sysopt = core.sysopt.lock();
sysopt.reset_sysproxy();
drop(sysopt);
let mut service = core.service.lock();
crate::log_if_err!(service.stop());
}
/// customize the window theme