Skip to content
Snippets Groups Projects
Unverified Commit cf966222 authored by GyDi's avatar GyDi
Browse files

fix: unused

parent 47c8ccb0
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment