Skip to content

Commit

Permalink
Widget update.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Dec 20, 2024
1 parent 15987a0 commit 3b1b4cb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions webui/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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:
Expand Down

0 comments on commit 3b1b4cb

Please sign in to comment.