Skip to content

Commit

Permalink
no need for state in select_vpk
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabwhy committed Feb 29, 2024
1 parent 9fcdb3d commit 881062d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ impl ExtractState {
}

#[tauri::command]
async fn select_vpk(
window: Window,
state: tauri::State<'_, AppState>,
) -> Result<Option<String>, String> {
async fn select_vpk(window: Window) -> Result<Option<String>, String> {
let file = AsyncFileDialog::new()
.set_parent(&window)
.set_title("Select a VPK file")
Expand Down

0 comments on commit 881062d

Please sign in to comment.