-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add app version to window title. Show notification when running some steam commands. Better detection of owned games. Removed button to delete Steam's cache, since it's no longer needed.
- Loading branch information
Showing
34 changed files
with
362 additions
and
281 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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
"cSpell.words": [ | ||
"ctypes", | ||
"flashbang", | ||
"isfreeapp", | ||
"shellapi", | ||
"ureq", | ||
"winapi", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,24 @@ | ||
use tauri::Manager; | ||
|
||
use crate::{ | ||
result::Result, | ||
serializable_enum, | ||
}; | ||
|
||
serializable_enum!(AppEvent { | ||
SyncInstalledGames, | ||
SyncOwnedGames, | ||
SyncDiscoverGames, | ||
SyncMods, | ||
ExecutedSteamCommand, | ||
}); | ||
|
||
pub trait EventEmitter { | ||
fn emit_event(&self, event: AppEvent) -> Result; | ||
} | ||
|
||
impl EventEmitter for tauri::AppHandle { | ||
fn emit_event(&self, event: AppEvent) -> Result { | ||
Ok(self.emit_all(&event.to_string(), ())?) | ||
} | ||
} |
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 |
---|---|---|
@@ -1,12 +1,9 @@ | ||
#[macro_export] | ||
macro_rules! set_up_api { | ||
( $builder:expr, [ $($func:ident),* $(,)? ] ) => { | ||
{ | ||
$builder.invoke_handler(tauri::generate_handler![$($func),*]) | ||
.run(tauri::generate_context!()) | ||
.unwrap_or_else(|err| println!("Failed to run Tauri application: {err}")); | ||
|
||
( | ||
$builder.invoke_handler(tauri::generate_handler![$($func),*]), | ||
specta::collect_types![$($func),*] | ||
} | ||
) | ||
}; | ||
} |
Oops, something went wrong.