Changes for #125

This commit is contained in:
MikeMaximus
2018-02-24 11:13:21 -06:00
parent 9f99b32200
commit 2d0e4a136d
3 changed files with 15 additions and 7 deletions
+12 -5
View File
@@ -1226,6 +1226,7 @@ Public Class frmMain
Public Sub UpdateLog(sLogUpdate As String, Optional bTrayUpdate As Boolean = True, Optional objIcon As System.Windows.Forms.ToolTipIcon = ToolTipIcon.Info, Optional bTimeStamp As Boolean = True) Handles oBackup.UpdateLog, oRestore.UpdateLog Public Sub UpdateLog(sLogUpdate As String, Optional bTrayUpdate As Boolean = True, Optional objIcon As System.Windows.Forms.ToolTipIcon = ToolTipIcon.Info, Optional bTimeStamp As Boolean = True) Handles oBackup.UpdateLog, oRestore.UpdateLog
Dim prsNotify As Process Dim prsNotify As Process
Dim bNotifyFailed As Boolean
Dim sUrgency As String Dim sUrgency As String
Dim sIconLocation As String Dim sIconLocation As String
Dim sNotifyArgs As String Dim sNotifyArgs As String
@@ -1292,13 +1293,19 @@ Public Class frmMain
prsNotify.StartInfo.RedirectStandardOutput = True prsNotify.StartInfo.RedirectStandardOutput = True
prsNotify.StartInfo.CreateNoWindow = True prsNotify.StartInfo.CreateNoWindow = True
prsNotify.Start() prsNotify.Start()
prsNotify.WaitForExit()
Select Case prsNotify.ExitCode
Case 0
bNotifyFailed = False
Case Else
bNotifyFailed = True
End Select
Catch Catch
'Show default notification style bNotifyFailed = True
gMonTray.BalloonTipText = sLogUpdate
gMonTray.BalloonTipIcon = objIcon
gMonTray.ShowBalloonTip(10000)
End Try End Try
Else End If
If Not mgrCommon.IsUnix Or bNotifyFailed Then
gMonTray.BalloonTipText = sLogUpdate gMonTray.BalloonTipText = sLogUpdate
gMonTray.BalloonTipIcon = objIcon gMonTray.BalloonTipIcon = objIcon
gMonTray.ShowBalloonTip(10000) gMonTray.ShowBalloonTip(10000)
+2 -1
View File
@@ -5,5 +5,6 @@ Priority: optional
Version: 1.0.8 Version: 1.0.8
Homepage: https://mikemaximus.github.io/gbm-web/ Homepage: https://mikemaximus.github.io/gbm-web/
Bugs: https://github.com/MikeMaximus/gbm/issues Bugs: https://github.com/MikeMaximus/gbm/issues
Depends: mono-vbnc, libsqlite3-0, p7zip-full, libnotify-bin Depends: mono-vbnc, libsqlite3-0, p7zip-full
Recommends: libnotify-bin
Description: Automatically backup your saved games! Description: Automatically backup your saved games!
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/sh -e #!/bin/sh -e
#check for all dependencies #check for all dependencies
for prog in mono readlink df 7za notify-send;do for prog in mono readlink df 7za;do
[ -n "`whereis -b ${prog} | cut -sd' ' -f2`" ] || (echo "Please install ${prog}" && exit 1); [ -n "`whereis -b ${prog} | cut -sd' ' -f2`" ] || (echo "Please install ${prog}" && exit 1);
done done
for lib in libsqlite3;do for lib in libsqlite3;do