remove all software

This commit is contained in:
Julian Freeman
2026-03-30 20:51:01 -04:00
parent f89ff7173b
commit a699df0b1a
6 changed files with 9 additions and 224 deletions

View File

@@ -8,7 +8,7 @@ use std::path::PathBuf;
use tokio::sync::mpsc;
use tauri::{AppHandle, Manager, State, Emitter};
use serde::{Serialize, Deserialize};
use winget::{Software, list_all_software, list_updates, ensure_winget_dependencies};
use winget::{Software, list_installed_software, list_updates, ensure_winget_dependencies};
use regex::Regex;
#[derive(Clone, Serialize, Deserialize)]
@@ -155,8 +155,8 @@ fn get_essentials(app: AppHandle) -> Option<EssentialsRepo> {
}
#[tauri::command]
async fn get_all_software(app: AppHandle) -> Vec<Software> {
tokio::task::spawn_blocking(move || list_all_software(&app)).await.unwrap_or_default()
async fn get_installed_software(app: AppHandle) -> Vec<Software> {
tokio::task::spawn_blocking(move || list_installed_software(&app)).await.unwrap_or_default()
}
#[tauri::command]
@@ -308,7 +308,7 @@ pub fn run() {
save_settings,
sync_essentials,
get_essentials,
get_all_software,
get_installed_software,
get_updates,
install_software,
get_logs_history