From 3b1b4cbe6d92c2baad25022a0bcb00e431a44043 Mon Sep 17 00:00:00 2001 From: Stan Soldatov Date: Fri, 20 Dec 2024 02:57:40 +0100 Subject: [PATCH] Widget update. --- webui/generator.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/webui/generator.py b/webui/generator.py index 6bef8b0..482162b 100644 --- a/webui/generator.py +++ b/webui/generator.py @@ -180,12 +180,7 @@ def add_left_widgets(self) -> None: ) # Rotation input. - st.write("Enter the rotation of the map:") - if self.community: - st.warning("💡 This feature is available in local version of the tool.") - rotation_disabled = True - else: - rotation_disabled = False + st.write("[BETA] Enter the rotation of the map:") self.rotation = st.slider( "Rotation", @@ -195,9 +190,11 @@ def add_left_widgets(self) -> None: step=1, key="rotation", label_visibility="collapsed", - disabled=rotation_disabled, + disabled=self.community, on_change=self.map_preview, ) + if self.community: + st.warning("💡 This feature is available in local version of the tool.") self.auto_process = st.checkbox("Use auto preset", value=True, key="auto_process") if self.auto_process: