Allow to install and run Kodi Logfile Uploader from the settings (#50)

This commit is contained in:
Michaël Arnauts 2020-11-03 11:50:54 +01:00 committed by GitHub
parent 84b7ade8a1
commit d8824d32be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 0 deletions

View File

@ -233,3 +233,11 @@ msgstr ""
msgctxt "#30882" msgctxt "#30882"
msgid "Enable debug logging" msgid "Enable debug logging"
msgstr "" msgstr ""
msgctxt "#30883"
msgid "Install Kodi Logfile Uploader…"
msgstr ""
msgctxt "#30884"
msgid "Open Kodi Logfile Uploader…"
msgstr ""

View File

@ -234,3 +234,11 @@ msgstr "Logboek"
msgctxt "#30882" msgctxt "#30882"
msgid "Enable debug logging" msgid "Enable debug logging"
msgstr "Activeer debug logging" msgstr "Activeer debug logging"
msgctxt "#30883"
msgid "Install Kodi Logfile Uploader…"
msgstr "Installeer Kodi Logfile Uploader…"
msgctxt "#30884"
msgid "Open Kodi Logfile Uploader…"
msgstr "Open Kodi Logfile Uploader…"

View File

@ -23,5 +23,7 @@
<category label="30880"> <!-- Expert --> <category label="30880"> <!-- Expert -->
<setting label="30881" type="lsep"/> <!-- Logging --> <setting label="30881" type="lsep"/> <!-- Logging -->
<setting label="30882" type="bool" id="debug_logging" default="false"/> <setting label="30882" type="bool" id="debug_logging" default="false"/>
<setting label="30883" type="action" action="InstallAddon(script.kodi.loguploader)" option="close" visible="!System.HasAddon(script.kodi.loguploader)"/> <!-- Install Kodi Logfile Uploader -->
<setting label="30884" type="action" action="RunAddon(script.kodi.loguploader)" visible="String.StartsWith(System.BuildVersion,18) + System.HasAddon(script.kodi.loguploader) | System.AddonIsEnabled(script.kodi.loguploader)" /> <!-- Open Kodi Logfile Uploader -->
</category> </category>
</settings> </settings>