Skip to content

Commit

Permalink
fix bug where list was not being deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
kidando committed Apr 26, 2022
1 parent f7ba835 commit c8cf0b6
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .import/board.png-9fda76561731b3bc08abeee0ed86b867.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_md5="9a993e70702bfc862a96af082710331a"
dest_md5="148d1e3ae3551d4380383304273a4d33"

Binary file not shown.
5 changes: 4 additions & 1 deletion addons/gkanban/pages/ProjectBoard.gd
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,13 @@ func _on_ListMenu_move_list_pressed(_list, _direction):


func _on_ListMenu_delete_list_pressed(_list):
print(_list)
var _list_index = get_list_index(_list)
project_board.lists.remove(_list_index)

for list in list_container.get_children():
if list == _list:
list.queue_free()
emit_signal("updated",self)
delete_menus()

func get_list_index(_list):
Expand Down
35 changes: 35 additions & 0 deletions readme_files/board.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/board.png-9fda76561731b3bc08abeee0ed86b867.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://readme_files/board.png"
dest_files=[ "res://.import/board.png-9fda76561731b3bc08abeee0ed86b867.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

0 comments on commit c8cf0b6

Please sign in to comment.