mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 19:04:15 +02:00
[ui] fix: not able to maximize/minimize the history dialog on some systems
This commit is contained in:
@@ -49,6 +49,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- not able to replace an installed package for a new one that replaces it during conflict resolutions (e.g: xapp replaces xapps)
|
- not able to replace an installed package for a new one that replaces it during conflict resolutions (e.g: xapp replaces xapps)
|
||||||
- AUR: not able to find some repository dependencies when their names are not an exact match (e.g: sc-controller [0.4.7-1] relies on "pylibacl". This dependency now is called "python-pylibacl")
|
- AUR: not able to find some repository dependencies when their names are not an exact match (e.g: sc-controller [0.4.7-1] relies on "pylibacl". This dependency now is called "python-pylibacl")
|
||||||
- UI
|
- UI
|
||||||
|
- history dialog: not able to maximize/minimize it on some systems
|
||||||
- wrong tooltips
|
- wrong tooltips
|
||||||
|
|
||||||
### i18n
|
### i18n
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
GREEN = '#91a069'
|
|
||||||
ORANGE = '#ECB03E'
|
|
||||||
RED = '#FF614E'
|
|
||||||
@@ -2,12 +2,11 @@ import operator
|
|||||||
from functools import reduce
|
from functools import reduce
|
||||||
|
|
||||||
from PyQt5.QtCore import Qt
|
from PyQt5.QtCore import Qt
|
||||||
from PyQt5.QtGui import QColor, QIcon, QCursor
|
from PyQt5.QtGui import QIcon, QCursor
|
||||||
from PyQt5.QtWidgets import QDialog, QVBoxLayout, QTableWidget, QTableWidgetItem, QHeaderView, QLabel
|
from PyQt5.QtWidgets import QDialog, QVBoxLayout, QTableWidget, QHeaderView, QLabel
|
||||||
|
|
||||||
from bauh.api.abstract.cache import MemoryCache
|
from bauh.api.abstract.cache import MemoryCache
|
||||||
from bauh.api.abstract.model import PackageHistory
|
from bauh.api.abstract.model import PackageHistory
|
||||||
from bauh.view.qt.colors import GREEN, ORANGE
|
|
||||||
from bauh.view.qt.view_model import PackageView
|
from bauh.view.qt.view_model import PackageView
|
||||||
from bauh.view.util.translation import I18n
|
from bauh.view.util.translation import I18n
|
||||||
|
|
||||||
@@ -16,7 +15,7 @@ class HistoryDialog(QDialog):
|
|||||||
|
|
||||||
def __init__(self, history: PackageHistory, icon_cache: MemoryCache, i18n: I18n):
|
def __init__(self, history: PackageHistory, icon_cache: MemoryCache, i18n: I18n):
|
||||||
super(HistoryDialog, self).__init__()
|
super(HistoryDialog, self).__init__()
|
||||||
self.setWindowFlags(self.windowFlags() | Qt.WindowSystemMenuHint | Qt.WindowMinMaxButtonsHint)
|
self.setWindowFlags(Qt.CustomizeWindowHint | Qt.WindowMinMaxButtonsHint | Qt.WindowCloseButtonHint)
|
||||||
|
|
||||||
view = PackageView(model=history.pkg, i18n=i18n)
|
view = PackageView(model=history.pkg, i18n=i18n)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user