Mad-Cookies-Studio / mad-productivity

Ever felt like being productive? No? Me neither.
MIT License
129 stars 13 forks source link

Deleting a project doesn't reset the right hand side so you can still create New Tasks which results in an error #13

Closed graydwarf closed 2 years ago

graydwarf commented 2 years ago

Repro Steps:

Expected:

Actual:

Error: Error: Attempt to call function 'set_percent_done' in base 'null instance' on a null instance.

File: ToDo.gd

Line:

 update_percent_done(p_id : int, child_p_id : int) -> void:
$VBoxContainer/HSplitContainer/PanelL/ScrollContainer/ProjectButtons.get_child(child_p_id).set_percent_done(res.get_percent_done(p_id))
graydwarf commented 2 years ago

Should note, not a blocker for me. Just poking around.

lentsius-bark commented 2 years ago

This is well spotted. The right panel should reset it's views and settings so that the aforementioned does not happen! Thanks for reporting.

lentsius-bark commented 2 years ago

fixed by c5ee39407ea5078ac7f3cd15496d47cb486c6d2e