mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
list item update working with swiftdialog Alpha 1.12.0.3169
This commit is contained in:
@@ -24,7 +24,7 @@ fakeInstallDelay=5
|
|||||||
items=(
|
items=(
|
||||||
"firefoxpkg|Firefox"
|
"firefoxpkg|Firefox"
|
||||||
"googlechromepkg|Google Chrome"
|
"googlechromepkg|Google Chrome"
|
||||||
"microsoftoffice365|Microsoft Office 365"
|
"microsoftedge|Microsoft Edge"
|
||||||
)
|
)
|
||||||
|
|
||||||
# MARK: Constants
|
# MARK: Constants
|
||||||
@@ -97,7 +97,7 @@ installomator() {
|
|||||||
startItem $description
|
startItem $description
|
||||||
|
|
||||||
$installomator $label \
|
$installomator $label \
|
||||||
DIALOG_PROGRESS=main \
|
DIALOG_PROGRESS="list" \
|
||||||
DIALOG_CMD_FILE=$dialog_command_file \
|
DIALOG_CMD_FILE=$dialog_command_file \
|
||||||
DEBUG=$DEBUG
|
DEBUG=$DEBUG
|
||||||
|
|
||||||
@@ -186,7 +186,7 @@ checkInstallomator() {
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# update installomator
|
# update installomator
|
||||||
installomator installomator
|
# installomator installomator
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -916,8 +916,12 @@ readDownloadPipe() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $char == % ]]; then
|
if [[ $char == % ]]; then
|
||||||
|
if [[ $DIALOG_PROGRESS == "main" ]]; then
|
||||||
updateDialogProgressText "Downloading $name - $progress%"
|
updateDialogProgressText "Downloading $name - $progress%"
|
||||||
updateDialogProgress "$progress"
|
updateDialogProgress "$progress"
|
||||||
|
elif [[ $DIALOG_PROGRESS == "list" ]]; then
|
||||||
|
echo "listitem: title: $name, statustext: Downloading... $progress%, progress: $progress" >> $log
|
||||||
|
fi
|
||||||
progress=""
|
progress=""
|
||||||
keep=0
|
keep=0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user