diff --git a/src/dashboard.py b/src/dashboard.py index 0ede1441ecd215d884c014f997d92a763531beda..8255fe90052c11820ab7fd3eac9c32a0cf1be56e 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -220,7 +220,10 @@ class dashboard(QWidget): self.kanan.setCursor(QCursor(Qt.CursorShape.PointingHandCursor)) self.kanan.clicked.connect(lambda:self.next(historyIdx)) - if(self.index_history == len(historyIdx)-1): + if (len(historyIdx) == 1): + self.kiri.hide() + self.kanan.hide() + elif(self.index_history == len(historyIdx)-1): self.kanan.hide() self.kiri.show() elif (self.index_history == 0):