Skip to content

Commit c90b66b

Browse files
committed
Auto-fix formatting issues
1 parent 3f5ee1e commit c90b66b

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

bin/builders/LinuxBuilder.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ export default class LinuxBuilder extends BaseBuilder {
8181
// Enable verbose output for AppImage builds when debugging or PAKE_VERBOSE is set.
8282
// AppImage builds often fail with minimal error messages from linuxdeploy,
8383
// so verbose mode helps diagnose issues like strip failures and missing dependencies.
84-
if (this.options.targets === 'appimage' && (this.options.debug || process.env.PAKE_VERBOSE)) {
84+
if (
85+
this.options.targets === 'appimage' &&
86+
(this.options.debug || process.env.PAKE_VERBOSE)
87+
) {
8588
fullCommand += ' --verbose';
8689
}
8790

src-tauri/src/app/setup.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ use tauri::{
99
use tauri_plugin_global_shortcut::{GlobalShortcutExt, Shortcut};
1010
use tauri_plugin_window_state::{AppHandleExt, StateFlags};
1111

12-
pub fn set_system_tray(app: &AppHandle, show_system_tray: bool, tray_icon_path: &str) -> tauri::Result<()> {
12+
pub fn set_system_tray(
13+
app: &AppHandle,
14+
show_system_tray: bool,
15+
tray_icon_path: &str,
16+
) -> tauri::Result<()> {
1317
if !show_system_tray {
1418
app.remove_tray_by_id("pake-tray");
1519
return Ok(());
@@ -61,11 +65,15 @@ pub fn set_system_tray(app: &AppHandle, show_system_tray: bool, tray_icon_path:
6165
_ => {}
6266
})
6367
.icon(if tray_icon_path.is_empty() {
64-
app.default_window_icon().unwrap_or_else(|| panic!("Failed to get default window icon")).clone()
68+
app.default_window_icon()
69+
.unwrap_or_else(|| panic!("Failed to get default window icon"))
70+
.clone()
6571
} else {
6672
tauri::image::Image::from_path(tray_icon_path).unwrap_or_else(|_| {
6773
// If custom tray icon fails to load, fallback to default
68-
app.default_window_icon().unwrap_or_else(|| panic!("Failed to get default window icon")).clone()
74+
app.default_window_icon()
75+
.unwrap_or_else(|| panic!("Failed to get default window icon"))
76+
.clone()
6977
})
7078
})
7179
.build(app)?;

src-tauri/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ pub fn run_app() {
6363
])
6464
.setup(move |app| {
6565
let window = set_window(app, &pake_config, &tauri_config);
66-
set_system_tray(app.app_handle(), show_system_tray, &pake_config.system_tray_path).unwrap();
66+
set_system_tray(
67+
app.app_handle(),
68+
show_system_tray,
69+
&pake_config.system_tray_path,
70+
)
71+
.unwrap();
6772
set_global_shortcut(app.app_handle(), activation_shortcut).unwrap();
6873

6974
// Show window after state restoration to prevent position flashing

0 commit comments

Comments
 (0)