Skip to content

Commit

Permalink
Show the version of OneDriveGUI in logs and in main window title
Browse files Browse the repository at this point in the history
  • Loading branch information
bpozdena committed Sep 26, 2024
1 parent 79b3e04 commit 09657c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ AppDir:
id: io.github.bpozdena.OneDriveGUI
name: OneDriveGUI
icon: OneDriveGUI
version: 1.1.0
version: 1.1.1
exec: usr/bin/python3
exec_args: "$APPDIR/usr/src/OneDriveGUI.py $@"

Expand Down
4 changes: 4 additions & 0 deletions src/OneDriveGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import logging.handlers as handlers
from configparser import ConfigParser

from version import __version__
from PySide6.QtCore import QThread, QTimer, QUrl, Signal, QFileInfo, Qt
from PySide6.QtGui import QIcon, QPixmap, QDesktopServices
from PySide6.QtWidgets import (
Expand Down Expand Up @@ -2213,6 +2214,7 @@ def __init__(self):

super(MainWindow, self).__init__()
self.setupUi(self)
self.setWindowTitle(f"OneDriveGUI v{__version__}")
self.setWindowIcon(QIcon(DIR_PATH + "/resources/images/icons8-clouds-80-dark-edge.png"))

if gui_settings["SETTINGS"]["frameless_window"] == "True":
Expand Down Expand Up @@ -3230,6 +3232,8 @@ def join(left, right):
level=config_debug_level(),
)

logging.info(f"Starting OneDriveGUI v{__version__}")

client_bin_path = config_client_bin_path()
client_version = get_installed_client_version()
global_config = create_global_config()
Expand Down
1 change: 1 addition & 0 deletions src/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.1.1"

0 comments on commit 09657c7

Please sign in to comment.