Skip to content

Commit

Permalink
chore: cleanup from the desktop split
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Nov 13, 2023
1 parent 1404b99 commit 8f51f97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/tauri/src/desktop/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use tauri::{Builder, PhysicalSize, Runtime, Wry};
#[non_exhaustive]
struct WindowSize;

use crate::system_tray;
use crate::updater;
use crate::desktop::system_tray;
use crate::desktop::updater;

impl WindowSize {

Expand Down
14 changes: 6 additions & 8 deletions app/tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@ pub fn run() {
let builder = builder.register_pomatez_commands();

#[cfg(desktop)]
{
let builder = builder
.setup(|app| {
app.setup_global_shortcuts();
app.set_pomatez_system_tray();
let builder = builder
.setup(|app| {
app.setup_global_shortcuts();
app.set_pomatez_system_tray();

Ok(())
});
}
Ok(())
});

let app = builder.build(tauri::generate_context!())
.expect("error while running tauri application");
Expand Down

0 comments on commit 8f51f97

Please sign in to comment.