Merge branch 'staging' into modules

This commit is contained in:
Vinicius Moreira
2019-07-31 12:20:36 -03:00
3 changed files with 13 additions and 8 deletions

View File

@@ -15,11 +15,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- new environment variable / argument to enable / disable the tray icon and update-check daemon: FPAKMAN_TRAY (--tray)
- search results sorting takes an average of 35% less time, reaching 60% in some scenarios
- app boot takes an average of 80% less time
- showing a warning popup when no Flatpak remotes are set after initialization.
- showing a warning popup after initialization when no Flatpak remotes are set
### Fixes:
- apps table not showing empty descriptions
- replacing default app icons by null icons
- i18n fixes
- maximized window resize fix when filtering apps
- i18n
### Comments:
- not adding Flatpak default remote (flathub) when initializing. It requires root actions, and will be addressed in a different way in future releases.

View File

@@ -264,6 +264,7 @@ class AppsTable(QTableWidget):
if app_v.model.base_data.version and app_v.model.base_data.latest_version and app_v.model.base_data.version < app_v.model.base_data.latest_version:
tooltip = '{}. {}: {}'.format(tooltip, self.window.locale_keys['version.latest'], app_v.model.base_data.latest_version)
label_version.setText(label_version.text() + ' > {}'.format(app_v.model.base_data.latest_version))
col_version.setToolTip(tooltip)
self.setCellWidget(idx, 1, col_version)
@@ -313,4 +314,4 @@ class AppsTable(QTableWidget):
def change_headers_policy(self, policy: QHeaderView = QHeaderView.ResizeToContents):
header_horizontal = self.horizontalHeader()
for i in range(self.columnCount()):
header_horizontal.setSectionResizeMode(i, policy)
header_horizontal.setSectionResizeMode(i, policy)

View File

@@ -196,6 +196,7 @@ class ManageWindow(QWidget):
self.filter_only_apps = True
self.filter_types = set()
self.filter_updates = False
self._maximized = False
def _handle_updates_filter(self, status: int):
self.filter_updates = status == 2
@@ -223,9 +224,9 @@ class ManageWindow(QWidget):
return spacer
def changeEvent(self, e: QEvent):
if isinstance(e, QWindowStateChangeEvent):
policy = QHeaderView.Stretch if self.isMaximized() else QHeaderView.ResizeToContents
self._maximized = self.isMaximized()
policy = QHeaderView.Stretch if self._maximized else QHeaderView.ResizeToContents
self.table_apps.change_headers_policy(policy)
def closeEvent(self, event):
@@ -370,9 +371,11 @@ class ManageWindow(QWidget):
visible_apps -= 1 if hidden else 0
self.change_update_state(change_filters=False)
self.table_apps.change_headers_policy(QHeaderView.Stretch)
self.table_apps.change_headers_policy()
self.resize_and_center(accept_lower_width=visible_apps > 0)
if not self._maximized:
self.table_apps.change_headers_policy(QHeaderView.Stretch)
self.table_apps.change_headers_policy()
self.resize_and_center(accept_lower_width=visible_apps > 0)
def change_update_state(self, change_filters: bool = True):
enable_bt_update = False