#Dialog Icon

29 messages · Page 1 of 1 (latest)

graceful mauve
#

Is is possible to change this folder icon?
I have been using the default window.alert() on MacOS, same happens with window.confirm()

signal lodge
#

Did you try the actual application after tauri build? iirc that has the correct icon but i'm not sure rn.

graceful mauve
#

my question was how can i change that icon, will it always be the app's icon or can it be set dynamically?

#

i have not built it yet

signal lodge
#

as far as i know it can only be the app icon

graceful mauve
#

can not test that my app does not open when i run the build version ha

signal lodge
graceful mauve
#

.open_devtools is not a method on Window, is that inteded on build? works fine in dev

signal lodge
#

yes

#

you can enable it by adding the "devtools" feature flag to the tauri dependency in cargo.toml

#

or guard the open_devtools call with a #[cfg(debug_assertions)] to only run it in dev & debug builds

graceful mauve
#

debug builds?

#

dom is literally <html><body></body></html>lol

signal lodge
#

it just tells rust how to compile the app, with or without optimizations

#

and i was just showing an option how to keep the open_devtools call without exposing the devtools to your endusers (who will get an app built with tauri build == with optimizations)

graceful mauve
#

so the debug flag will allow dev features in the release build which i should not share?

signal lodge
#

yes

#

or well, that depends on you

#

if your app is open source for example i don't think it matters if users have access to the devtools

#

i mean, even discord has them enabled 🤷

#

or had, they removed it from stable because people where getting scammed lol

graceful mauve
#

pretty sure users will find a way to open them anyway somehow so i take it as always accesible

signal lodge
#

in a tauri app, without the devtools feature flag that should be actually impossible.

graceful mauve
#

not sure if i wanna make it os or a paid software

signal lodge
graceful mauve
#

do i need to specify something special in the config file so that the root html file is bundled with the actual release? i have not changed anything and kept the default svelte template

signal lodge
#

you mean create-tauri-app's svelte template?