앱 버전표시
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
"core:window:allow-hide",
|
||||
"core:window:allow-show",
|
||||
"core:window:allow-set-focus",
|
||||
"core:window:allow-set-title",
|
||||
"core:window:allow-start-dragging",
|
||||
"core:webview:allow-create-webview-window",
|
||||
"core:webview:allow-webview-close",
|
||||
|
||||
@@ -21,6 +21,12 @@ pub fn run() {
|
||||
.plugin(tauri_plugin_process::init())
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.setup(|app| {
|
||||
let version = app.package_info().version.to_string();
|
||||
let main_title = format!("GoldenChart (v{version})");
|
||||
if let Some(w) = app.get_webview_window("main") {
|
||||
let _ = w.set_title(&main_title);
|
||||
}
|
||||
|
||||
let show_i = MenuItemBuilder::with_id("show", "GoldenChart 열기").build(app)?;
|
||||
let quit_i = MenuItemBuilder::with_id("quit", "종료").build(app)?;
|
||||
let menu = MenuBuilder::new(app)
|
||||
|
||||
Reference in New Issue
Block a user