Skip to content

Commit

Permalink
Add dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
veldenb committed Nov 27, 2023
1 parent cdff9ca commit 09814cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
executable = addon.getSettingString('command_to_execute')

if executable:
p_dialog = xbmcgui.DialogProgress()
p_dialog.create(addon.getLocalizedString(30005))
p_dialog.update(50)
result = run([executable], stdout=PIPE, stderr=PIPE, universal_newlines=True)
p_dialog.close()

# Check if command was successful
if result.returncode != 0:
Expand Down
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.program.steam-launcher" name="Steam" version="1.0.0" provider-name="veldenb">
<addon id="plugin.program.steam-launcher" name="Steam" version="1.0.1" provider-name="veldenb">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
</requires>
Expand Down
4 changes: 4 additions & 0 deletions resources/language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ msgstr "Set the command to execute"
msgctxt "#30004"
msgid "Error executing command"
msgstr "Error executing command"

msgctxt "#30005"
msgid "Launching Steam..."
msgstr "Launching Steam..."

0 comments on commit 09814cb

Please sign in to comment.