mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 02:23:43 +08:00
fix: unused
This commit is contained in:
parent
2d00ddad2b
commit
6ca81df40c
@ -182,9 +182,9 @@ impl Service {
|
||||
}
|
||||
|
||||
pub fn check_start(&mut self) -> Result<()> {
|
||||
let global = Data::global();
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
let global = Data::global();
|
||||
let verge = global.verge.lock();
|
||||
let service_mode = verge.enable_service_mode.unwrap_or(false);
|
||||
|
||||
|
@ -190,7 +190,8 @@ fn main() -> std::io::Result<()> {
|
||||
})
|
||||
.expect("error when exiting.");
|
||||
|
||||
app.run(|_, e| match e {
|
||||
#[allow(unused)]
|
||||
app.run(|app_handle, e| match e {
|
||||
tauri::RunEvent::ExitRequested { api, .. } => {
|
||||
api.prevent_exit();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user