mirror of
https://github.com/gen2brain/cbconvert
synced 2025-10-13 18:18:52 +02:00
Fix remove last
This commit is contained in:
@@ -724,7 +724,11 @@ func onRemove(ih iup.Ihandle) int {
|
||||
return iup.IGNORE
|
||||
}
|
||||
|
||||
if len(files) == 1 {
|
||||
files = make([]cbconvert.File, 0)
|
||||
} else {
|
||||
files = append(files[:index], files[index+1:]...)
|
||||
}
|
||||
|
||||
iup.GetHandle("List").SetAttribute("REMOVEITEM", iup.GetHandle("List").GetAttribute("VALUE"))
|
||||
setActive()
|
||||
|
Reference in New Issue
Block a user