Skip to content

Commit

Permalink
feat(all): disable plugins check
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Sep 13, 2023
1 parent ac0c311 commit c95b45f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ fn create_systray() -> SystemTray {
SystemTray::new().with_menu(tray_menu)
}

#[tauri::command]
fn should_disable_plugins() -> bool {
std::env::args().any(|arg| arg == "--disable-plugins")
}

fn main() {
std::thread::sleep(Duration::from_millis(200));

Expand Down Expand Up @@ -132,6 +137,7 @@ fn main() {
maximize,
close,
change_zoom,
should_disable_plugins,
css_preprocess::clear_css_cache,
css_preprocess::localize_imports,
js_preprocess::localize_all_js,
Expand Down

0 comments on commit c95b45f

Please sign in to comment.