funktion saveSettings verschoben
This commit is contained in:
parent
4dfd9e8ccf
commit
6aa1cfda8e
13
bibVPN.sh
13
bibVPN.sh
@ -42,6 +42,19 @@ SHOW_SETTINGS='true'
|
|||||||
SHOW_ICON='true'
|
SHOW_ICON='true'
|
||||||
SHOW_COLOR='true'
|
SHOW_COLOR='true'
|
||||||
DEBUG_OUTPUT='false'
|
DEBUG_OUTPUT='false'
|
||||||
|
|
||||||
|
function saveSettings(){
|
||||||
|
echo "Speichere die Einstellungen" >> $logfile
|
||||||
|
echo "SHOW_SETTINGS='$SHOW_SETTINGS'
|
||||||
|
SHOW_ICON='$SHOW_ICON'
|
||||||
|
SHOW_COLOR='$SHOW_COLOR'
|
||||||
|
DEBUG_OUTPUT=$DEBUG_OUTPUT" |tee $SETTINGSFILE
|
||||||
|
|
||||||
|
echo "Lade die Einstellungsdatei" >> $logfile
|
||||||
|
source $SETTINGSFILE
|
||||||
|
open swiftbar://refreshplugin?name=$(basename $0)
|
||||||
|
}
|
||||||
|
|
||||||
if [ -f $SETTINGSFILE ] ; then
|
if [ -f $SETTINGSFILE ] ; then
|
||||||
echo "Lade die Einstellungsdatei" >> $logfile
|
echo "Lade die Einstellungsdatei" >> $logfile
|
||||||
source $SETTINGSFILE
|
source $SETTINGSFILE
|
||||||
|
Loading…
Reference in New Issue
Block a user