When closing the last tab of a dual file display lister, DOpus still identifies the lister status as dual. Is that correct? What might I be doing or interpreting incorrectly?
function OnInit(initData)
{
initData.name = "TestDual";
initData.version = "1.0";
initData.copyright = "(c) 2024 Chuck";
// initData.url = "https://resource.dopus.com/c/buttons-scripts/16";
initData.desc = "";
initData.default_enable = true;
initData.min_version = "13.0";
}
var fsu = DOpus.FSUtil();
var tab;
var cmd = DOpus.Create().Command();
function testDual(lister) {
tab = lister.activetab;
cmd.SetSourceTab(tab);
if (tab.lister.dual == 1) {
DOpus.Output('TestDual (=1) = ' + tab.lister.dual);
} else {
if (tab.lister.dual == 2) {
DOpus.Output('TestDual (=2) = ' + tab.lister.dual);
} else {
DOpus.Output('TestDual (=0) = ' + tab.lister.dual);
}
}
}
function OnCloseTab(closeTabData) {
DOpus.Output('OnCloseTab = ' + closeTabData.tab);
testDual(closeTabData.tab.lister);
}