Skip to content

Commit

Permalink
fix: lints and linux rpm build
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Jan 12, 2024
1 parent 06fad09 commit 9c746f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ fn make_it_autostart(home_dir: impl AsRef<Path>) {
#[cfg(target_os = "linux")]
{
use crate::{
config::{AUTOSTART_CONFIG_PATH, DESKTOP_FILE_NAME, DESKTOP_FILE_PATH},
constants::{AUTOSTART_CONFIG_PATH, DESKTOP_FILE_NAME, DESKTOP_FILE_PATH},
util::create_dir_if_does_not_exists,
};

Expand Down
2 changes: 2 additions & 0 deletions src/app/tray_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ impl TrayMenu {

let server_tray_status = status.unwrap_or_default().server_js;
let has_server_status = server_tray_status.is_some();
#[cfg(debug_assertions)]
let server_running = matches!(server_tray_status, Some(ServerTrayStatus::Running { .. }));
let server_restarting = matches!(server_tray_status, Some(ServerTrayStatus::Restarting));
#[cfg(debug_assertions)]
let server_stopped = matches!(server_tray_status, Some(ServerTrayStatus::Stopped));

let mut tray_menu = ContextMenu::new();
Expand Down

0 comments on commit 9c746f2

Please sign in to comment.