Skip to content
Snippets Groups Projects
Commit 44e510af authored by Nicolas Barthes's avatar Nicolas Barthes
Browse files

fixed interface selection propagation through pages

parent c1cf0b75
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ from Modules import * ...@@ -4,6 +4,7 @@ from Modules import *
from Class_Mod.DATA_HANDLING import * from Class_Mod.DATA_HANDLING import *
add_header() add_header()
add_sidebar(pages_folder) add_sidebar(pages_folder)
local_css(css_file / "style_model.css")
@st.cache_data @st.cache_data
...@@ -17,7 +18,6 @@ def delete(): ...@@ -17,7 +18,6 @@ def delete():
elif os.path.isdir(chemin_fichier): elif os.path.isdir(chemin_fichier):
os.rmdir(chemin_fichier) os.rmdir(chemin_fichier)
delete() delete()
local_css(css_file / "style_model.css")
# Initialize the variable in session state if it doesn't exist for st.cache_data # Initialize the variable in session state if it doesn't exist for st.cache_data
if 'counter' not in st.session_state: if 'counter' not in st.session_state:
......
...@@ -14,6 +14,8 @@ def add_header(): ...@@ -14,6 +14,8 @@ def add_header():
def add_sidebar(pages_folder): def add_sidebar(pages_folder):
if 'interface' not in st.session_state: if 'interface' not in st.session_state:
st.session_state['interface'] = 'simple' st.session_state['interface'] = 'simple'
else:
st.session_state["interface"] = st.session_state.get('interface')
# # TOC menu on the left # # TOC menu on the left
show_pages( show_pages(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment