Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/badger/gui/mini/pages/routine_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
get_table_content_as_dict,
set_init_data_table,
update_init_data_table,
resize_columns_to_content_or_default,
)
from badger.gui.mini.components.env_cbox import BadgerEnvBox
from badger.gui.windows.docs_window import BadgerDocsWindow
Expand Down Expand Up @@ -1227,6 +1228,7 @@ def fill_curr_in_init_table(self, record=False):

if record and self.env_box.relative_to_curr.isChecked():
self.init_table_actions.append({"type": "add_curr"})
resize_columns_to_content_or_default(table)

def save_add_rand_config(self, add_rand_config):
self.add_rand_config = add_rand_config
Expand Down Expand Up @@ -1295,6 +1297,7 @@ def add_rand_in_init_table(self, add_rand_config=None, record=True):
"config": add_rand_config,
}
)
resize_columns_to_content_or_default(table)

def show_add_rand_dialog(self):
dlg = BadgerAddRandomDialog(
Expand All @@ -1317,6 +1320,7 @@ def clear_init_table(self, reset_actions=True):
item = table.item(row, col)
if item:
item.setText("") # Set the cell content to an empty string
resize_columns_to_content_or_default(table)

if reset_actions and self.env_box.relative_to_curr.isChecked():
self.init_table_actions = [] # reset the recorded actions
Expand Down
Loading