mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 08:44:15 +02:00
[fix][ui] not displaying some priority search results at the top of the table
This commit is contained in:
@@ -6,13 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
|
|
||||||
## [0.8.4] - 2020-02
|
## [0.8.4] - 2020-02
|
||||||
### Improvements
|
### Improvements
|
||||||
- UI:
|
- UI
|
||||||
- treating multiple lines on the application's description displayed on the table
|
- treating multiple lines on the application's description displayed on the table
|
||||||
### Fixes
|
### Fixes
|
||||||
- Snap
|
- Snap
|
||||||
- not able to launch applications on some distros ( e.g: OpenSuse )
|
- not able to launch applications on some distros ( e.g: OpenSuse )
|
||||||
|
- UI
|
||||||
|
- not displaying some priority search results at the top of the table
|
||||||
|
|
||||||
## [0.8.3] - 2020-02-13
|
|
||||||
|
## [0.8.3] - 2020-02
|
||||||
### Improvements
|
### Improvements
|
||||||
- New update lifecycle:
|
- New update lifecycle:
|
||||||
- now every package manager must provide all requirements before upgrading all selected packages ( can be disabled through the settings file **~/.config/bauh/config.yml** or the UI )
|
- now every package manager must provide all requirements before upgrading all selected packages ( can be disabled through the settings file **~/.config/bauh/config.yml** or the UI )
|
||||||
@@ -23,7 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- checking architecture dependencies (x86_64, i686)
|
- checking architecture dependencies (x86_64, i686)
|
||||||
- architecture dependencies are displayed on the info window as well
|
- architecture dependencies are displayed on the info window as well
|
||||||
- optimizations to speed up zst packages building
|
- optimizations to speed up zst packages building
|
||||||
- showing a warning messaging when trying to install / update / downgrade a package with the root user
|
- showing a warning message when trying to install / update / downgrade a package with the root user
|
||||||
- UI:
|
- UI:
|
||||||
- **Settings** available as a tray action as well
|
- **Settings** available as a tray action as well
|
||||||
- minor improvements
|
- minor improvements
|
||||||
|
|||||||
@@ -692,9 +692,9 @@ class ManageWindow(QWidget):
|
|||||||
setattr(self, attr, checked)
|
setattr(self, attr, checked)
|
||||||
checkbox.blockSignals(False)
|
checkbox.blockSignals(False)
|
||||||
|
|
||||||
def _gen_filters(self, updates: int = 0, ignore_updates: bool = False) -> dict:
|
def _gen_filters(self, updates: int = 0, ignore_updates: bool = False, only_apps: bool = None) -> dict:
|
||||||
return {
|
return {
|
||||||
'only_apps': self.filter_only_apps,
|
'only_apps': self.filter_only_apps if only_apps is None else only_apps,
|
||||||
'type': self.type_filter,
|
'type': self.type_filter,
|
||||||
'category': self.category_filter,
|
'category': self.category_filter,
|
||||||
'updates': False if ignore_updates else self.filter_updates,
|
'updates': False if ignore_updates else self.filter_updates,
|
||||||
@@ -774,7 +774,9 @@ class ManageWindow(QWidget):
|
|||||||
|
|
||||||
def _apply_filters(self, pkgs_info: dict, ignore_updates: bool):
|
def _apply_filters(self, pkgs_info: dict, ignore_updates: bool):
|
||||||
pkgs_info['pkgs_displayed'] = []
|
pkgs_info['pkgs_displayed'] = []
|
||||||
filters = self._gen_filters(updates=pkgs_info['updates'], ignore_updates=ignore_updates)
|
filters = self._gen_filters(updates=pkgs_info['updates'],
|
||||||
|
ignore_updates=ignore_updates,
|
||||||
|
only_apps=False if self.search_performed else None)
|
||||||
for pkgv in pkgs_info['pkgs']:
|
for pkgv in pkgs_info['pkgs']:
|
||||||
commons.apply_filters(pkgv, filters, pkgs_info)
|
commons.apply_filters(pkgv, filters, pkgs_info)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user