Skip to content

Commit 2af87aa

Browse files
committed
Improve framework API compatibility and configure forced LF in .gitattributes
1 parent b23a784 commit 2af87aa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# 所有文本文件强制使用 LF 换行符
2+
* text=auto eol=lf

app/src-tauri/src/tray.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub fn create_tray<R: Runtime>(app: &tauri::AppHandle<R>) -> tauri::Result<()> {
3030
let _ = TrayIconBuilder::with_id("tray")
3131
.icon(app.default_window_icon().unwrap().clone())
3232
.menu(&menu)
33-
.menu_on_left_click(menu_click_by_left)
33+
.show_menu_on_left_click(menu_click_by_left)
3434
.on_menu_event(move |app, event| match event.id.as_ref() {
3535
"main_show" => open_main_window(app),
3636
"endpoint_information" => {

0 commit comments

Comments
 (0)