Skip to content

Commit

Permalink
Update GlobalClass.vb
Browse files Browse the repository at this point in the history
  • Loading branch information
Revan654 committed Feb 18, 2019
1 parent 726403a commit 5c72a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions General/GlobalClass.vb
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ Public Class GlobalClass
Dim OSName = Registry.LocalMachine.GetString("SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductName")
If p.SourceFile <> "" Then
p.TempDir = Macro.Expand(p.TempDir)
If OSName.Contains("Windows 10") Then
If p.TempDir = "" and OSName.Contains("Windows 10") Then
Try
If p.SourceFile.Dir.EndsWith("_temp\") Then
p.TempDir = p.SourceFile.Dir
Expand Down Expand Up @@ -1160,4 +1160,4 @@ Public Class GlobalClass
Dim ts = TimeSpan.FromSeconds(sec)
Return CInt(Math.Floor(ts.TotalMinutes)).ToString("00") + ":" + CInt(Math.Floor(ts.Seconds)).ToString("00")
End Function
End Class
End Class

0 comments on commit 5c72a61

Please sign in to comment.