Skip to content

Commit b8e60fb

Browse files
committed
[fix](core) fix known issues
1 parent aa02b16 commit b8e60fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/picsharp-app/src-tauri/src/command.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub async fn ipc_open_system_preference_notifications() -> Response {
3636

3737
#[cfg(target_os = "windows")]
3838
#[command]
39-
pub async fn ipc_open_system_preference_notifications() -> Result<String, String> {
39+
pub async fn ipc_open_system_preference_notifications() -> Response {
4040
let methods = vec![
4141
("explorer", vec!["ms-settings:notifications"]),
4242
("start", vec!["ms-settings:notifications"]),
@@ -81,7 +81,7 @@ pub async fn ipc_open_system_preference_notifications() -> Result<String, String
8181

8282
#[cfg(target_os = "linux")]
8383
#[command]
84-
pub async fn ipc_open_system_preference_notifications() -> Result<String, String> {
84+
pub async fn ipc_open_system_preference_notifications() -> Response {
8585
// Detect desktop environment
8686
let desktop_env = std::env::var("XDG_CURRENT_DESKTOP")
8787
.or_else(|_| std::env::var("DESKTOP_SESSION"))
@@ -171,7 +171,7 @@ pub async fn ipc_open_system_preference_notifications() -> Result<String, String
171171

172172
#[cfg(not(any(target_os = "macos", target_os = "windows", target_os = "linux")))]
173173
#[command]
174-
pub async fn ipc_open_system_preference_notifications() -> Result<String, String> {
174+
pub async fn ipc_open_system_preference_notifications() -> Response {
175175
Ok(serde_json::json!({
176176
"success": false,
177177
"error": "Opening system notification settings is not supported on this platform"

0 commit comments

Comments
 (0)