Skip to content

Commit 64005d6

Browse files
committed
Add disclaimer in about box
1 parent 3663cf4 commit 64005d6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src-tauri/src/lib.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,16 @@ pub fn run() {
4242
let handle = app.handle();
4343

4444
let aboutmeta = AboutMetadataBuilder::new()
45+
.name(Some("Luxafor-ui"))
4546
.authors(Some(vec![String::from("Robin Kristiansen")]))
47+
.comments(Some("A simple app to control your Luxafor Flag"))
48+
.copyright(Some("Luxafor-ui is not affiliated with, endorsed by, or associated with Luxafor. Luxafor is a registered trademark of GreyNut SIA."))
4649
.icon(Some(handle.default_window_icon().unwrap().clone()))
4750
.build();
4851
let about_i = PredefinedMenuItem::about(handle, Some("About"), Some(aboutmeta))?;
4952
let quit_i = MenuItemBuilder::with_id("quit", "Quit").build(handle)?;
5053
let luxafor_ui_i =
51-
MenuItemBuilder::with_id("luxafor-ui", "Luxafor-ui").build(handle)?;
54+
MenuItemBuilder::with_id("luxafor_ui", "Luxafor-ui").build(handle)?;
5255
let menu = MenuBuilder::new(handle)
5356
.items(&[
5457
&luxafor_ui_i,
@@ -63,7 +66,7 @@ pub fn run() {
6366
.show_menu_on_left_click(true)
6467
.icon(handle.default_window_icon().unwrap().clone())
6568
.on_menu_event(|app, event| match event.id.as_ref() {
66-
"luxafor-ui" => {
69+
"luxafor_ui" => {
6770
if let Some(window) = app.get_webview_window("main") {
6871
window.show().unwrap();
6972
window.unminimize().unwrap();

src-tauri/tauri.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
3-
"productName": "luxafor-ui",
3+
"productName": "Luxafor-ui",
44
"version": "0.1.0",
55
"identifier": "no.luxafor-ui.app",
66
"build": {

0 commit comments

Comments
 (0)