diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-03-21 18:28:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 17:28:18 +0000 |
commit | a22486193ef49113851fab6f277d50f796ecc636 (patch) | |
tree | ae527a566c5a0e99032e16195a40b550fdeb328f /src-tauri/src/github | |
parent | 36fdc302bef162d213d6a026c99614673b24a069 (diff) | |
download | FlightCore-a22486193ef49113851fab6f277d50f796ecc636.tar.gz FlightCore-a22486193ef49113851fab6f277d50f796ecc636.zip |
Add buttons to download PRs (#203)
* feat: Add button to download Mods PR
Simply opens the browser on the repo download link
* feat: Add button to download Launcher PR
Uses existing function to fetch nightly.link link and opens it in
browser
* refactor: Open Mods PR download link via TS
as opposed to having a link directly
This way it acts the same way as the Launcher PR download button.
Reason behind this change being consistent UI style.
* chore: Revert introduced formatting changes
Those were added by accident, whoops
* fix: Remove introduced unused dependency
* fix: Remove unused dependencies
Diffstat (limited to 'src-tauri/src/github')
-rw-r--r-- | src-tauri/src/github/pull_requests.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-tauri/src/github/pull_requests.rs b/src-tauri/src/github/pull_requests.rs index 586a4fb3..4bba2a2c 100644 --- a/src-tauri/src/github/pull_requests.rs +++ b/src-tauri/src/github/pull_requests.rs @@ -142,7 +142,8 @@ fn get_mods_download_link(pull_request: PullsApiResponseElement) -> Result<Strin } /// Gets `nightly.link` artifact download link of a launcher PR -async fn get_launcher_download_link( +#[tauri::command] +pub async fn get_launcher_download_link( pull_request: PullsApiResponseElement, ) -> Result<String, String> { // Iterate over the first 10 pages of |