Skip to content

Commit 4702d30

Browse files
committed
Show forced state in console torrent info
1 parent 9a0be51 commit 4702d30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

uis/src/com/biglybt/ui/console/commands/IConsoleCommand.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ protected String expandVariable( char variable, DownloadManager dm )
179179
switch( variable )
180180
{
181181
case 'a':
182-
return getShortStateString(dm.getState());
182+
return getShortStateString(dm.getState(),dm.isForceStart());
183183
case 'c':
184184
DecimalFormat df = new DecimalFormat("000.0%");
185185
return df.format(dm.getStats().getCompleted() / 1000.0);
@@ -280,7 +280,7 @@ protected String getDefaultSummaryFormat()
280280
* @param dmstate
281281
* @return
282282
*/
283-
private static String getShortStateString(int dmstate) {
283+
private static String getShortStateString(int dmstate, boolean forced) {
284284
switch( dmstate )
285285
{
286286
case DownloadManager.STATE_INITIALIZING:
@@ -290,11 +290,11 @@ private static String getShortStateString(int dmstate) {
290290
case DownloadManager.STATE_CHECKING:
291291
return("C");
292292
case DownloadManager.STATE_DOWNLOADING:
293-
return(">");
293+
return( forced?"F":">");
294294
case DownloadManager.STATE_ERROR:
295295
return("E");
296296
case DownloadManager.STATE_SEEDING:
297-
return("*");
297+
return( forced?"F":"*");
298298
case DownloadManager.STATE_STOPPED:
299299
return("!");
300300
case DownloadManager.STATE_WAITING:

0 commit comments

Comments
 (0)