Bug #3035
closed
$appactive is always $true
Added by mr uno about 8 years ago.
Updated almost 8 years ago.
Description
I am using $appactive to update the titlebar when adirc is active, but I have observed it updating when I have it minimized.
Reproduce with the following:
//timer 1 5 echo -at Appactive is: $appactive
Minimize adirc and wait at least 5 seconds
You need to do add a ! in the $appactive like this: //timer 1 5 echo -at Appactive is: $!appactive
If not, you will evaluate the current value of $appactive when the timer is created, not when it's run.
You are correct and I forgot the !. The issue s still present: //timer 2 5 echo -a app is active: $!appactive
[14:17:43] * Timer 1 activated
app is active: $true
app is active: $true
[14:17:53] * Timer 1 halted
Should work fine as long as no AdiIRC window has focus.
- Status changed from New to Closed
Also available in: Atom
PDF