Skip to content

Commit e7dfda4

Browse files
committed
fix[macos]: other fixes
1 parent 8775430 commit e7dfda4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/app/tile/update.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ pub fn handle_update(tile: &mut Tile, message: Message) -> Task<Message> {
5151
// I do not know so much abt rendering stuff
5252
#[cfg(not(target_os = "linux"))]
5353
{
54+
use crate::app::menubar::menu_icon;
55+
5456
tile.tray_icon = Some(menu_icon(
5557
#[cfg(not(target_os = "linux"))]
5658
tile.hotkey,

src/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn sys_open(path: &str) {
4141
let url = if path.starts_with("http") {
4242
NSURL::URLWithString(&NSString::from_str(path))
4343
} else {
44-
NSURL::fileURLWithPath(&NSString::from_str(path))
44+
Some(NSURL::fileURLWithPath(&NSString::from_str(path)))
4545
};
4646
if let Some(u) = url {
4747
NSWorkspace::sharedWorkspace().openURL(&u);

0 commit comments

Comments
 (0)