refactor: update wrong list behaviour in history screen
This commit is contained in:
parent
084ea252a2
commit
4f8e353d48
2 changed files with 17 additions and 2 deletions
0
cmd/build.sh
Normal file → Executable file
0
cmd/build.sh
Normal file → Executable file
|
|
@ -174,9 +174,24 @@ func MakeHistoryScreen(db *data.DatabaseService, parent fyne.Window) fyne.Canvas
|
|||
)
|
||||
|
||||
toolbar := widget.NewToolbar(widget.NewToolbarAction(theme.ViewRefreshIcon(), refreshData))
|
||||
content := container.NewVBox(header, container.NewStack(list, container.NewCenter(placeholder)))
|
||||
layout := container.NewBorder(toolbar, nil, nil, nil, content)
|
||||
// content := container.NewVBox(header, container.NewStack(list, container.NewCenter(placeholder)))
|
||||
// layout := container.NewBorder(toolbar, nil, nil, nil, content)
|
||||
|
||||
content := container.NewBorder(
|
||||
header,
|
||||
nil,
|
||||
nil,
|
||||
nil,
|
||||
container.NewVScroll(list),
|
||||
)
|
||||
|
||||
layout := container.NewBorder(
|
||||
toolbar,
|
||||
nil,
|
||||
nil,
|
||||
nil,
|
||||
content,
|
||||
)
|
||||
if layout.Visible() {
|
||||
refreshData()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue