Status Bar - return values for non-Dual Display?

I've been trying to create a status bar which will highlight whether the files/folders selected in the Source are greater than the disk free space available in the Destination (ie to avoid copying them across).

It seems relatively straightforward to do using a bar graph along the lines of:
{bg+v={sb}/{dfDb},c1=#00FF00,c3=#ff0000,G=0}

Unfortunately when I'm NOT in a Dual Display and have items selected the graph goes crazy as dfDB (disk free in Destination) seems to return an almost-zero value, so you have selected bytes divided by some very small number = very high percentage.

Is there any reason why dfDB returns this strange value rather than zero when the lister isn't in Dual Display?

You are most likely causing a divide by zero error. You should create one status bar for your single file display listers under Preferences - Display - Status Bar and another for your dual file display listers under Preferences - Display - Status Bar (Dual).

They can be really similar, but the single one should not reference dual codes.

Here, give mine status bars a trial, and see if they are to your liking. They might be close to what you are looking for. Copy yours first and save them to a text file, so can you restore it later. The attached text file has my Status Bar codes Here is what they look like:




StatusBars.txt (1.29 KB)

If you select too much data in the dual the gauge turns bright red.

Okay, how dumb do I feel now? When you edit the status bar in the Preferences dialog the very next option in the list is "Status Bar (Dual)"! :blush:

It never even occurred to me that you could have two different status bars.

Thanks for the heads up kenalcock! :smiley:

We are all learning, some of us have just been at it longer is all. Not a day goes by where I don't learn something new about Opus, and then Jon and Greg will go and add something else to it. It never ends!