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:
parent
55822ab577
commit
00fa34a842
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue