-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
140 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"rust-analyzer.showUnlinkedFileNotification": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
- Close riot client if dolos closes | ||
- Read which games are installed and only show the ones installed | ||
- Read which games are installed and only show the ones installed | ||
- Toggleable statuses | ||
- Fake user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use std::sync::atomic::AtomicBool; | ||
|
||
pub struct DolosState { | ||
pub shutdown: AtomicBool | ||
} | ||
|
||
impl Default for DolosState { | ||
fn default() -> Self { | ||
Self { shutdown: AtomicBool::new(false) } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
use tauri::{SystemTray, CustomMenuItem, SystemTrayMenu, | ||
// SystemTrayMenuItem, | ||
AppHandle, SystemTrayEvent, | ||
// SystemTraySubmenu | ||
}; | ||
|
||
pub fn create_tray() -> SystemTray { | ||
// let status = SystemTraySubmenu::new("Status", SystemTrayMenu::new().add_item(CustomMenuItem::new("Online".to_string(), "Online").selected())); | ||
let quit = CustomMenuItem::new("quit".to_string(), "Quit"); | ||
let open = CustomMenuItem::new("open".to_string(), "Open"); | ||
let menu = SystemTrayMenu::new() | ||
// .add_submenu(status) | ||
// .add_native_item(SystemTrayMenuItem::Separator) | ||
.add_item(open) | ||
.add_item(quit); | ||
SystemTray::new().with_menu(menu) | ||
} | ||
|
||
pub fn handle_event(app: &AppHandle, event: SystemTrayEvent) { | ||
match event { | ||
SystemTrayEvent::MenuItemClick { id, .. } => { | ||
match id.as_ref() { | ||
"open" => { | ||
tauri::WindowBuilder::from_config(app, app.config().tauri.windows.get(0).unwrap().clone()).build().unwrap(); | ||
}, | ||
"quit" => { | ||
app.exit(0); | ||
}, | ||
_ => {} | ||
} | ||
} | ||
_ => {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters