Skip to content

Commit

Permalink
reduce code.
Browse files Browse the repository at this point in the history
  • Loading branch information
learturely committed Nov 29, 2024
1 parent 89688cf commit eb67b1c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 34 deletions.
1 change: 0 additions & 1 deletion src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ mod command;
mod location_info_getter;
mod signner;
mod state;
mod tools;

use cxlib::default_impl::store::{
AccountTable, AliasTable, DataBase, ExcludeTable, LocationTable,
Expand Down
3 changes: 2 additions & 1 deletion src-tauri/src/signner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ where
fn get_enc() -> Result<String, Error> {
let enc = {
#[cfg(any(target_os = "linux", target_os = "windows", target_os = "macos"))]
let enc = crate::tools::capture_screen_for_enc().unwrap_or_default();
let enc =
cxlib::qrcode_utils::capture_screen_for_enc(false, false).unwrap_or_default();
#[cfg(not(any(target_os = "linux", target_os = "windows", target_os = "macos")))]
let enc = Default::default();
enc
Expand Down
32 changes: 0 additions & 32 deletions src-tauri/src/tools.rs

This file was deleted.

0 comments on commit eb67b1c

Please sign in to comment.