Skip to content

Commit 2808659

Browse files
committed
update to flet0.25.2, fix custom scripts bug
adding custom scripts now properly updates the view
1 parent 5703f33 commit 2808659

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

main.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2482,10 +2482,14 @@ def sort_scripts_by_index(dict): # Use this to sort scripts by index before appe
24822482

24832483
if len(list_of_script_cards) <= 0:
24842484
list_of_script_cards.append(no_scripts)
2485-
scripts_column.cotrols = list_of_script_cards
2486-
page.update()
2485+
scripts_column.controls = list_of_script_cards
2486+
try:
2487+
scripts_column.update()
2488+
except AssertionError as e:
2489+
# Control isn't added to page yet so ignore
2490+
pass
24872491

2488-
# Populate controls on initial app load
2492+
# Populate script controls on initial app load
24892493
generate_scripts()
24902494

24912495
def check_space(e):

text_values.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
programs_tutorial_txt = 'You can use this panel to check for a specific program on a computer, or get a list of all detected software.'
1717

18-
setup_pstools = "PowerShell 7 and PsTools are required for this program to work. \
19-
By default, this app looks for PsExec.exe and PsService.exe in your system32 folder and PowerShell 7 in \
20-
C:\Program Files\PowerShell\\7. If it does not find them, you will see this setup screen and be asked to \
21-
find them manually."
18+
setup_pstools = """PowerShell 7 and PsTools are required for this program to work.
19+
By default, this app looks for PsExec.exe and PsService.exe in your system32 folder and PowerShell 7 in
20+
C:\Program Files\PowerShell\\7.
21+
If it does not find them, you will see this setup screen and be asked to
22+
find them manually."""

0 commit comments

Comments
 (0)