mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 09:46:53 -04:00
Ignore page changes if we're already on that page.
This commit is contained in:
parent
fe1cd7917b
commit
79c855d9a2
@ -83,10 +83,12 @@ class Manual extends GuiScreen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def pushPage(path: String): Unit = {
|
def pushPage(path: String): Unit = {
|
||||||
|
if (path != history.top) {
|
||||||
history.push(path)
|
history.push(path)
|
||||||
scrollTo(0)
|
scrollTo(0)
|
||||||
refreshPage()
|
refreshPage()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def popPage(): Unit = {
|
def popPage(): Unit = {
|
||||||
if (history.size > 1) {
|
if (history.size > 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user