mirror of
https://github.com/Luzifer/streamdeck.git
synced 2024-12-20 09:41:19 +00:00
Fix: Do not pile up the same page on refresh
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
512ebfaa8a
commit
5ee7785103
1 changed files with 4 additions and 1 deletions
|
@ -246,7 +246,10 @@ func togglePage(page string) error {
|
||||||
}(idx, kd)
|
}(idx, kd)
|
||||||
}
|
}
|
||||||
|
|
||||||
pageStack = append([]string{page}, pageStack...)
|
if len(pageStack) == 0 || pageStack[0] != page {
|
||||||
|
pageStack = append([]string{page}, pageStack...)
|
||||||
|
}
|
||||||
|
|
||||||
if len(pageStack) > 100 {
|
if len(pageStack) > 100 {
|
||||||
pageStack = pageStack[:100]
|
pageStack = pageStack[:100]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue