Skip to content

Commit

Permalink
check environment.userinteractive - system process call - frmMain.vb/…
Browse files Browse the repository at this point in the history
…fLoading.Show
  • Loading branch information
redglory committed Jul 16, 2013
1 parent 6f4f761 commit 60dced9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,6 +1,7 @@

#ignore thumbnails created by windows
Thumbs.db
.DS_Store
#Ignore files build by Visual Studio
*.obj
*.pdb
Expand Down
20 changes: 19 additions & 1 deletion Ember Media Manager/frmMain.vb
Expand Up @@ -120,6 +120,9 @@ Public Class frmMain

Private KeyBuffer As String = String.Empty

' Environment variables
Private isUserInteractive As Boolean = True

#End Region 'Fields

#Region "Delegates"
Expand Down Expand Up @@ -5521,8 +5524,23 @@ doCancel:
isCL = True
fLoading.SetProgressBarSize(10)
End If
fLoading.Show(Me)
' #############################################
' ### Inserted by: redglory on 14.07.2013 ###
' #############################################
' # Check If Ember Media Manager is called #
' # from a service process or from a Web #
' # application #
' # #
' # UserInteractive property (True/False) # #
' #############################################
Me.isUserInteractive = Environment.UserInteractive
If Me.isUserInteractive Then
'# Show UI
fLoading.Show(Me)
End If

Application.DoEvents()

' Run InstallTask to see if any pending file needs to install
' Do this before loading modules/themes/etc
If File.Exists(Path.Combine(Functions.AppPath, "InstallTasks.xml")) Then
Expand Down

0 comments on commit 60dced9

Please sign in to comment.