You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ife.Data.EndsWith(" are not compressed.")Then'Gets the output line that identifies the total number of files compressed.
81
81
byteComparisonRawFilesCompressed=e.Data
82
82
EndIf
83
+
Ife.Data.StartsWith(" Listing ")Then'Gets the output line that identifies the query folder count
84
+
QdirCountProgress+=1
85
+
EndIf
83
86
CatchexAsException
84
87
85
88
EndTry
@@ -125,18 +128,38 @@ Public Class Compact
125
128
126
129
IffileCountTotal<>0Then'Makes sure that there are actually files being counted before attempting a calculation
127
130
128
-
progresspercent.Text=Math.Round_
131
+
IfisQueryMode=0Then
132
+
133
+
progresspercent.Text=Math.Round_
129
134
((fileCountProgress/fileCountTotal*100),0).ToString+" %"'Generates an estimate of progress based on how many files have been processed out of the total.
130
135
131
-
Try
132
-
Ifcompactprogressbar.Value>=101Then'Avoids a /r/softwaregore scenario
133
-
compactprogressbar.Value=1
134
-
Else
135
-
compactprogressbar.Value=Math.Round_
136
-
((fileCountProgress/fileCountTotal*100),0)
137
-
EndIf
138
-
CatchexAsException
139
-
EndTry
136
+
Try
137
+
Ifcompactprogressbar.Value>=101Then'Avoids a /r/softwaregore scenario
138
+
compactprogressbar.Value=1
139
+
Else
140
+
compactprogressbar.Value=Math.Round_
141
+
((fileCountProgress/fileCountTotal*100),0)
142
+
EndIf
143
+
CatchexAsException
144
+
EndTry
145
+
146
+
ElseIfisQueryMode=1Then
147
+
148
+
progresspercent.Text=Math.Round_
149
+
((QdirCountProgress/dirCountTotal*100),0).ToString+" %"'Generates an estimate of progress for the Query command.
150
+
151
+
Try
152
+
Ifcompactprogressbar.Value>=101Then'Avoids a /r/softwaregore scenario
153
+
compactprogressbar.Value=1
154
+
Else
155
+
compactprogressbar.Value=Math.Round_
156
+
((QdirCountProgress/dirCountTotal*100),0)
157
+
EndIf
158
+
CatchexAsException
159
+
EndTry
160
+
161
+
EndIf
162
+
140
163
141
164
EndIf
142
165
@@ -150,10 +173,11 @@ Public Class Compact
150
173
EndIf
151
174
152
175
compressFinished=0
176
+
153
177
buttonRevert.Visible=True
154
178
returnArrow.Visible=True
155
179
CalculateSaving()
156
-
180
+
QdirCountProgress=0
157
181
EndIf
158
182
159
183
IfuncompressFinished=1Then'Hides and shows certain UI elements when uncompression is finished
0 commit comments