[snap] not showing 'License' in the info window if it defined as 'unset'

This commit is contained in:
Vinicius Moreira
2019-10-29 11:42:16 -03:00
parent 96169d5bad
commit 7624933888
4 changed files with 9 additions and 3 deletions

View File

@@ -5,8 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [0.7.2]
### Improvements
- Snap
- not showing **License** in the info window if it defined as **unset**
### Fixes:
- The application crashes due to Snap API checking when snap is not installed
- Snap
- The application crashes due to Snap API checking when snap is not installed
## [0.7.1] 2019-10-25
### Features

View File

@@ -140,6 +140,9 @@ class SnapManager(SoftwareManager):
if info.get('commands'):
info['commands'] = ' '.join(info['commands'])
if info.get('license') and info['license'] == 'unset':
del info['license']
return info
def get_history(self, pkg: SnapApplication) -> PackageHistory:

View File

@@ -3,7 +3,6 @@ snap.info.commands=comandos
snap.info.contact=contacto
snap.info.description=descripción
snap.info.license=licencia
snap.info.license.unset=no está definida
snap.info.revision=revisión
snap.info.tracking=tracking
snap.info.installed=instalado

View File

@@ -3,7 +3,6 @@ snap.info.commands=comandos
snap.info.contact=contato
snap.info.description=descrição
snap.info.license=licença
snap.info.license.unset=não definida
snap.info.revision=revisão
snap.info.tracking=tracking
snap.info.installed=instalado