Skip to content

Commit

Permalink
fix: legacy should not be built for macos
Browse files Browse the repository at this point in the history
Signed-off-by: Martichou <[email protected]>
  • Loading branch information
Martichou committed Jul 14, 2024
1 parent 037100a commit 9709c52
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/legacy/src-tauri/src/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ use notify_rust::Notification;
use rqs_lib::channel::{ChannelAction, ChannelDirection, ChannelMessage};
use rqs_lib::Visibility;
use tauri::{AppHandle, Manager};
#[cfg(not(target_os = "linux"))]
use tauri_plugin_notification::NotificationExt;

use crate::cmds;

pub fn send_request_notification(name: String, id: String, app_handle: &AppHandle) {
let body = format!("{name} want to initiate a transfer");

#[cfg(target_os = "linux")]
match Notification::new()
.summary("RQuickShare")
.body(&body)
Expand Down Expand Up @@ -53,14 +50,6 @@ pub fn send_request_notification(name: String, id: String, app_handle: &AppHandl
error!("Couldn't show notification: {}", e);
}
}

#[cfg(not(target_os = "linux"))]
let _ = app_handle
.notification()
.builder()
.title("RQuickShare")
.body(&body)
.show();
}

pub fn send_temporarily_notification(app_handle: &AppHandle) {
Expand Down

0 comments on commit 9709c52

Please sign in to comment.