From 5819db01d3eeb42011ce7c10bebb599b66a95dda Mon Sep 17 00:00:00 2001 From: BrewingWeasel Date: Wed, 8 Nov 2023 02:19:16 -0500 Subject: [PATCH] feat: ui for startup commands --- src-ui/src/settings.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src-ui/src/settings.rs b/src-ui/src/settings.rs index 2758e12..63c09e7 100644 --- a/src-ui/src/settings.rs +++ b/src-ui/src/settings.rs @@ -50,6 +50,8 @@ pub fn SettingsChanger(settings: Resource<(), Settings>) -> impl IntoView { let (note_fields, set_note_fields) = create_signal(old_settings.note_fields); let (css, set_css) = create_signal(old_settings.css.unwrap_or_default()); + let (commands, set_commands) = + create_signal(old_settings.to_run.unwrap_or_default().join("\n")); let new_dicts = old_settings .dicts @@ -113,6 +115,12 @@ pub fn SettingsChanger(settings: Resource<(), Settings>) -> impl IntoView {
+
+

Automatically run commands

+

Be very very careful with what you put in here

+ +
+