1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-21 23:33:13 +00:00

Fix generic window icon on Wayland

This commit is contained in:
Parnassius 2024-08-31 18:30:51 +02:00 committed by Manu
parent 55822ab577
commit 00fa34a842

View file

@ -1,4 +1,5 @@
import logging
import sys
from pathlib import Path
from PyQt6 import QtCore, uic
@ -47,6 +48,8 @@ def __init__(self, parent=None):
self.setWindowTitle('Vorta for Borg Backup')
self.app = parent
self.setWindowIcon(get_colored_icon("icon"))
if sys.platform.startswith('linux'):
self.app.setDesktopFileName('com.borgbase.Vorta')
self.setWindowFlags(QtCore.Qt.WindowType.WindowCloseButtonHint | QtCore.Qt.WindowType.WindowMinimizeButtonHint)
self.createStartBtn = LoadingButton(self.tr("Start Backup"))
self.gridLayout.addWidget(self.createStartBtn, 0, 0, 1, 1)