Skip to content

Commit

Permalink
Allow to install and run Kodi Logfile Uploader from the settings (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarnauts authored Nov 3, 2020
1 parent c6641b4 commit d27dd18
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -261,3 +261,11 @@ msgstr ""
msgctxt "#30882"
msgid "Enable debug logging"
msgstr ""

msgctxt "#30883"
msgid "Install Kodi Logfile Uploader…"
msgstr ""

msgctxt "#30884"
msgid "Open Kodi Logfile Uploader…"
msgstr ""
8 changes: 8 additions & 0 deletions resources/language/resource.language.nl_nl/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,11 @@ msgstr "Logboek"
msgctxt "#30882"
msgid "Enable 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…"
2 changes: 2 additions & 0 deletions resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@
<category label="30880"> <!-- Expert -->
<setting label="30881" type="lsep"/> <!-- Logging -->
<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>
</settings>

0 comments on commit d27dd18

Please sign in to comment.