Skip to content

Commit db319c3

Browse files
committed
Update
1 parent 84180ac commit db319c3

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

src-tauri/src/desktop/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,30 @@ pub fn setup(app: &mut App) -> tauri::Result<()> {
3838

3939
let handle = app.handle();
4040

41+
println!("Autostart");
4142
handle.plugin(tauri_plugin_autostart::init(
4243
MacosLauncher::LaunchAgent,
4344
Some(vec!["--hidden"]),
4445
))?;
4546

47+
println!("Updater");
4648
handle.plugin(tauri_plugin_updater::Builder::new().build())?;
4749

50+
println!("Single Instance");
4851
handle.plugin(tauri_plugin_single_instance::init(|app, _, _| {
4952
let _ = app.get_webview_window("main").expect("Impossible").show();
5053
}))?;
5154

5255
let handle = app.handle().clone();
5356

57+
println!("Checking for update");
5458
tauri::async_runtime::spawn(async move {
5559
if let Err(_) = update(handle).await {
5660
println!("Couldn't check update");
5761
}
5862
});
5963

64+
println!("Listen");
6065
if !should_be_hidden() {
6166
let handle = app.handle().clone();
6267

@@ -68,12 +73,14 @@ pub fn setup(app: &mut App) -> tauri::Result<()> {
6873
});
6974
}
7075

76+
println!("Deep Linking");
7177
#[cfg(any(target_os = "linux", all(debug_assertions, windows)))]
7278
{
7379
use tauri_plugin_deep_link::DeepLinkExt;
7480
app.deep_link().register_all().expect("Unable to register");
7581
}
7682

83+
println!("Building Tray Icon");
7784
TrayIconBuilder::with_id("main")
7885
.tooltip("AHQ Store is running")
7986
.icon(Image::from_bytes(include_bytes!("../../icons/icon.png"))?)

src-tauri/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn get_accent() -> Option<String> {
2020
Some(&mut pcbdata as *mut u32)
2121
).ok().ok()?;
2222

23-
println!("Color: {color:?}");
23+
println!("[INFO] Color: {color:?}");
2424

2525
let [r, g, b, _] = color;
2626

@@ -43,12 +43,14 @@ pub fn run() {
4343
.plugin(tauri_plugin_deep_link::init())
4444
.plugin(tauri_plugin_ahqstore::init())
4545
.setup(|app| {
46+
println!("[INFO] Running Desktop Setup");
4647
#[cfg(desktop)]
4748
desktop::setup(app)?;
4849

4950
#[cfg(desktop)]
5051
app.handle().plugin(tauri_plugin_window_state::Builder::default().build())?;
5152

53+
println!("[INFO] Running");
5254
Ok(())
5355
})
5456
.run(tauri::generate_context!())

src-tauri/tauri.conf.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
"minWidth": 348,
2323
"visible": false,
2424
"decorations": false,
25-
"transparent": true
25+
"transparent": true,
26+
"windowEffects": {
27+
"effects": ["mica"]
28+
},
29+
"additionalBrowserArgs": "--disable-features=msWebOOUI,msPdfOOUI,msSmartScreenProtection --autoplay-policy=no-user-gesture-required"
2630
}
2731
],
2832
"security": {

0 commit comments

Comments
 (0)