Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ameasere committed Jan 22, 2023
1 parent bf07575 commit 1f50918
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UI/newMain.ui
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ background-color: transparent;</string>
<string notr="true">background-image: url(:/icons/images/icons/cil-lock-locked.png);</string>
</property>
<property name="text">
<string>Passwords</string>
<string>Security</string>
</property>
</widget>
</item>
Expand Down
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ def openCloseRightBox():
# SHOW APP
self.show()
widgets.btn_more.clicked.connect(self.buttonClick)
self.ui.titleLeftDescription.setText("Dashboard")

themeFile = "themes/EasyRSA.qss"

Expand Down Expand Up @@ -699,21 +700,25 @@ def buttonClick(self):
btn.setStyleSheet(
UIFunctions.selectMenu(
btn.styleSheet())) # SELECT MENU
self.ui.titleLeftDescription.setText("Dashboard")
case "btn_filespace":
# self.ui.titleLeftDescription.setText("Filespace")
self.ui.stackedWidget.setCurrentWidget(self.ui.filespace)
UIFunctions.resetStyle(self, btnName)
btn.setStyleSheet(UIFunctions.selectMenu(btn.styleSheet()))
self.ui.titleLeftDescription.setText("D.M.E")
case "btn_security":
# self.ui.titleLeftDescription.setText("Security")
self.ui.stackedWidget.setCurrentWidget(self.ui.Security)
UIFunctions.resetStyle(self, btnName)
btn.setStyleSheet(UIFunctions.selectMenu(btn.styleSheet()))
self.ui.titleLeftDescription.setText("Security")
case "btn_account":
# self.ui.titleLeftDescription.setText("Account")
self.ui.stackedWidget.setCurrentWidget(self.ui.Account)
UIFunctions.resetStyle(self, btnName)
btn.setStyleSheet(UIFunctions.selectMenu(btn.styleSheet()))
self.ui.titleLeftDescription.setText("Account")
case "btn_exit":
self.__privateKey = None
self.__publicKey = None
Expand Down
2 changes: 1 addition & 1 deletion modules/ui_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2406,7 +2406,7 @@ def retranslateUi(self, MainWindow):
self.toggleButton.setText(QCoreApplication.translate("MainWindow", u"Hide", None))
self.btn_home.setText(QCoreApplication.translate("MainWindow", u"Home", None))
self.btn_filespace.setText(QCoreApplication.translate("MainWindow", u"Drive", None))
self.btn_security.setText(QCoreApplication.translate("MainWindow", u"Passwords", None))
self.btn_security.setText(QCoreApplication.translate("MainWindow", u"Security", None))
self.btn_account.setText(QCoreApplication.translate("MainWindow", u"Account", None))
self.btn_exit.setText(QCoreApplication.translate("MainWindow", u"Log out", None))
self.toggleLeftBox.setText(QCoreApplication.translate("MainWindow", u"Settings", None))
Expand Down

0 comments on commit 1f50918

Please sign in to comment.