Skip to content

Commit

Permalink
🎨unique app id, icon, version
Browse files Browse the repository at this point in the history
  • Loading branch information
berkaygediz committed Nov 1, 2024
1 parent 1560548 commit 676982f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions RichSpan.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,19 @@
from modules.globals import *
from modules.threading import *

try:
from ctypes import windll

windll.shell32.SetCurrentProcessExplicitAppUserModelID("berkaygediz.RichSpan.1.5")
except ImportError:
pass


class RS_About(QMainWindow):
def __init__(self, parent=None):
super(RS_About, self).__init__(parent)
self.setWindowFlags(Qt.Dialog)
self.setWindowIcon(QIcon("richspan_icon.png"))
self.setWindowIcon(QIcon("richspan_icon.ico"))
self.setWindowModality(Qt.WindowModality.ApplicationModal)
self.setGeometry(
QStyle.alignedRect(
Expand Down Expand Up @@ -1295,11 +1302,11 @@ def replaceText(self, text):
elif __file__:
applicationPath = os.path.dirname(__file__)
app = QApplication(sys.argv)
app.setWindowIcon(QIcon(os.path.join(applicationPath, "richspan_icon.png")))
app.setWindowIcon(QIcon(os.path.join(applicationPath, "richspan_icon.ico")))
app.setOrganizationName("berkaygediz")
app.setApplicationName("RichSpan")
app.setApplicationDisplayName("RichSpan 2024.09")
app.setApplicationVersion("1.4.2024.09-3")
app.setApplicationDisplayName("RichSpan 2024.11")
app.setApplicationVersion("1.5.2024.11-1")
ws = RS_Workspace()
ws.show()
sys.exit(app.exec())

0 comments on commit 676982f

Please sign in to comment.