mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 20:04:15 +02:00
Fix: Flatpak 1.2.X application names not showing properly
This commit is contained in:
@@ -9,6 +9,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- Management panel shows update commands streams
|
- Management panel shows update commands streams
|
||||||
- Management panel status label is "orange" now
|
- Management panel status label is "orange" now
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- Application name not properly showing for Flatpak 1.2.X
|
||||||
|
|
||||||
## [0.1.0] - 2019-06-14
|
## [0.1.0] - 2019-06-14
|
||||||
### Features
|
### Features
|
||||||
- System tray icon.
|
- System tray icon.
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ def app_str_to_json(line: str, version: str) -> dict:
|
|||||||
app['name'] = ref_data[0].split('.')[-1]
|
app['name'] = ref_data[0].split('.')[-1]
|
||||||
app['version'] = None
|
app['version'] = None
|
||||||
elif '1.2' <= version < '1.3':
|
elif '1.2' <= version < '1.3':
|
||||||
app = {'name': app_array[0][1].split('.')[-1],
|
app = {'name': app_array[1].strip().split('.')[-1],
|
||||||
'id': app_array[1],
|
'id': app_array[1],
|
||||||
'version': app_array[2],
|
'version': app_array[2],
|
||||||
'branch': app_array[3],
|
'branch': app_array[3],
|
||||||
|
|||||||
Reference in New Issue
Block a user