i'm having a problem with a little popup window. if i click on the x the
close the window and then click on settings to open it again, it doesn't
show. however if i click on save and exit, when i click on settings it
will show itself. code below...
sub Settings_Click {
&GetSettings;
$Window2->DunBox->Change(-text => $dun);
$Window2->StoreField->Change(-text => $storecode);
$Window2->{-dialogui} = 1;
$Window2->Show();
}
sub SaveAndExit_Click {
$config = Config::IniFiles->new(-file => "settings.ini");
$dun = $Window2->DunBox->Text();
$config->setval('ARIAnet','Connection',$dun);
$config->RewriteConfig;
$Window2->Hide();
}
sub Settings_Terminate {
$Window2->Hide();
return 0;
}