Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsgrd committed Sep 18, 2024
1 parent 52852df commit 4995183
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion crates/gitbutler-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ tempfile = "3.10"
gitbutler-testsupport.workspace = true

[dependencies]
reqwest = { version = "0.12.4", features = ["json"] }
anyhow = "1.0.86"
backtrace = { version = "0.3.72", optional = true }
console-subscriber = "0.4.0"
Expand All @@ -35,7 +36,6 @@ gix = { workspace = true, features = [
"worktree-mutation",
] }
once_cell = "1.19"
reqwest = { version = "0.12.4", features = ["json"] }
serde.workspace = true
serde_json = { version = "1.0", features = ["std", "arbitrary_precision"] }
tauri-plugin-clipboard-manager = "2.0.0-rc.3"
Expand Down
21 changes: 12 additions & 9 deletions crates/gitbutler-tauri/src/menu.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::{env, fs};

use crate::open::open_that as open_url;
use anyhow::Context;
use gitbutler_error::error::{self, Code};
use serde_json::json;
Expand Down Expand Up @@ -290,14 +289,18 @@ pub fn handle_event(webview: &WebviewWindow, event: &MenuEvent) {
}

'open_link: {
let result = match event.menu_item_id() {
"help/documentation" => open_url("https://docs.gitbutler.com"),
"help/github" => open_url("https://github.com/gitbutlerapp/gitbutler"),
"help/release-notes" => open_url("https://github.com/gitbutlerapp/gitbutler/releases"),
"help/report-issue" => open_url("https://github.com/gitbutlerapp/gitbutler/issues/new"),
"help/discord" => open_url("https://discord.com/invite/MmFkmaJ42D"),
"help/youtube" => open_url("https://www.youtube.com/@gitbutlerapp"),
"help/x" => open_url("https://x.com/gitbutler"),
let result = match event.id().0.as_str() {
"help/documentation" => open::that("https://docs.gitbutler.com"),
"help/github" => open::that("https://github.com/gitbutlerapp/gitbutler"),
"help/release-notes" => {
open::that("https://discord.com/channels/1060193121130000425/1183737922785116161")
}
"help/report-issue" => {
open::that("https://github.com/gitbutlerapp/gitbutler/issues/new")
}
"help/discord" => open::that("https://discord.com/invite/MmFkmaJ42D"),
"help/youtube" => open::that("https://www.youtube.com/@gitbutlerapp"),
"help/x" => open::that("https://x.com/gitbutler"),
_ => break 'open_link,
};

Expand Down

0 comments on commit 4995183

Please sign in to comment.