mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2026-01-30 19:15:17 +01:00
* feat: depot api downloads * feat: frontend fixes and experimental webview store * feat: sync downloader * feat: cleanup and fixes * feat: encrypted database and fixed resuming * feat: launch option selector * fix: autostart when no options * fix: clippy * fix: clippy x2 * feat: executor launch * feat: executor launch * feat: not installed error handling * feat: better offline handling * feat: dependency popup * fix: cancelation and resuming issues * feat: dedup by platform * feat: new ui for additional components and fix dl manager clog * feat: auto-queue dependencies * feat: depot scanning and ranking * feat: new library fetching stack * In-app store page (Windows + macOS) (#176) * feat: async store loading * feat: fix overscroll behaviour * fix: query params in server protocol * fix: clippy
23 lines
550 B
Rust
23 lines
550 B
Rust
use database::DownloadableMetadata;
|
|
use download_manager::DOWNLOAD_MANAGER;
|
|
|
|
#[tauri::command]
|
|
pub async fn pause_downloads() {
|
|
DOWNLOAD_MANAGER.pause_downloads().await;
|
|
}
|
|
|
|
#[tauri::command]
|
|
pub async fn resume_downloads() {
|
|
DOWNLOAD_MANAGER.resume_downloads().await;
|
|
}
|
|
|
|
#[tauri::command]
|
|
pub async fn move_download_in_queue(old_index: usize, new_index: usize) {
|
|
DOWNLOAD_MANAGER.rearrange(old_index, new_index).await;
|
|
}
|
|
|
|
#[tauri::command]
|
|
pub async fn cancel_game(meta: DownloadableMetadata) {
|
|
DOWNLOAD_MANAGER.cancel(meta).await;
|
|
}
|