Skip to content

Commit 05f08ed

Browse files
committed
fixed rename element
1 parent 8636bda commit 05f08ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TODOlist.pyw

+2-2
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ def rename_element():
979979

980980
if f"{temp_data['list_index']} {hierarchy_index} {section_id} {element_type.upper()} {new_element_name}" not in temp_data['element_keys']:
981981
add_to_last(('rename_element', new_key, old_name))
982-
augment_element_onto_list(new_element_name, 'RENAME', old_name, hierarchy_index, section_id, None)
982+
augment_element_onto_list(None , 'RENAME', old_name, hierarchy_index, section_id, None, new_element_name)
983983
else:
984984
message_popup('Element already exists within\ncurrent area/ section')
985985

@@ -1382,7 +1382,7 @@ def startup():
13821382

13831383
startup()
13841384

1385-
sg.SetOptions(icon='icon.ico', ttk_theme='vista', border_width=0)
1385+
sg.SetOptions(icon='icon.ico', border_width=0)
13861386

13871387
window = sg.Window('TODOlist', layout=create_layout(None), size=(300,500), finalize=True)
13881388
bindings()

0 commit comments

Comments
 (0)