File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 205205 "openlist_extra_args" : " OpenList Extra Startup Args" ,
206206 "quit" : " Quit" ,
207207 "tray_show" : " Show Main Window" ,
208+ "tray_restart" : " Restart Program" ,
208209 "open_log_dir" : " Open Log Folder" ,
209210 "export_diagnostics" : " Export Diagnostics" ,
210211 "diagnostics_exported" : " Diagnostics exported" ,
Original file line number Diff line number Diff line change 205205 "openlist_extra_args" : " OpenList 启动参数" ,
206206 "quit" : " 退出" ,
207207 "tray_show" : " 显示主窗口" ,
208+ "tray_restart" : " 重启程序" ,
208209 "open_log_dir" : " 打开日志目录" ,
209210 "export_diagnostics" : " 导出诊断包" ,
210211 "diagnostics_exported" : " 诊断包已导出" ,
Original file line number Diff line number Diff line change 205205 "openlist_extra_args" : " OpenList 額外啟動參數" ,
206206 "quit" : " 退出" ,
207207 "tray_show" : " 顯示主視窗" ,
208+ "tray_restart" : " 重啟程式" ,
208209 "open_log_dir" : " 打開日誌目錄" ,
209210 "export_diagnostics" : " 匯出診斷包" ,
210211 "diagnostics_exported" : " 診斷包已匯出" ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ impl Tray {
1414 let menu = tauri:: menu:: MenuBuilder :: new ( app)
1515 . items ( & [
1616 & build_item ( "show" , locale. get ( "tray_show" ) ) ?,
17+ & build_item ( "restart" , locale. get ( "tray_restart" ) ) ?,
1718 & build_item ( "quit" , locale. get ( "quit" ) ) ?,
1819 ] )
1920 . build ( )
@@ -45,6 +46,9 @@ impl Tray {
4546 let _ = window. toggle_visibility ( Some ( true ) ) ;
4647 }
4748 }
49+ "restart" => {
50+ app. restart ( ) ;
51+ }
4852 "quit" => {
4953 app. app_quit ( ) ;
5054 }
You can’t perform that action at this time.
0 commit comments