From 501378d274bd016f13c37869270b852a33461bf6 Mon Sep 17 00:00:00 2001 From: Agsha Athalla Nurkareem <agshaathalla@gmail.com> Date: Wed, 19 Apr 2023 14:44:06 +0700 Subject: [PATCH] refractor : ubah panah --- src/dashboard.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dashboard.py b/src/dashboard.py index 0ede144..8255fe9 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): -- GitLab