[web] improvement: default pre-selected installation category is now 'Network'

This commit is contained in:
Vinicius Moreira
2021-12-15 16:27:10 -03:00
parent 01293e872f
commit 30cdfd8d52
2 changed files with 6 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- checking for javascript fixes based on the Electron version (saved on disk as `~/.local/share/bauh/web/fixes/electron_{branch}/{app_name}.js`)
- handling http redirect errors
- installation form title
- default pre-selected installation category is now "Network" (Internet)
- UI
- only displaying a confirmation dialog for custom actions that start immediately

View File

@@ -485,6 +485,11 @@ class WebApplicationManager(SoftwareManager):
if opt.value == app.categories[0]:
def_cat = opt
break
else:
for op in cat_ops:
if op.value == 'Network':
def_cat = op
break
inp_cat = SingleSelectComponent(label=self.i18n['category'], type_=SelectViewType.COMBO, options=cat_ops, default_option=def_cat)
op_wv = InputOption(id_='widevine', label=self.i18n['web.install.option.widevine.label'] + ' (DRM)', value="--widevine", tooltip=self.i18n['web.install.option.widevine.tip'])