Skip to content
Snippets Groups Projects
Commit bcd6bd46 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Two fixes an two alert()s.

Some things were using the global i and not a local i... this was
not a problem.

Added alerts when lightbar.draw() aborts due to no ANSI or no colour.
parent 3af9bc01
No related branches found
No related tags found
1 merge request!488Overhaul LZH code
Pipeline #7524 passed
......@@ -906,6 +906,7 @@ function draw_main(topline)
function menu_opt(func)
{
var i;
stop_mouse();
clear_screen();
func();
......
......@@ -142,6 +142,7 @@ Lightbar.prototype.getval = function(current,key)
var ret=undefined;
var last_cur;
var mk;
var i;
if(!this.nodraw)
this.draw();
......@@ -362,9 +363,11 @@ Lightbar.prototype.draw = function(current)
if(current!=undefined)
this.current=current;
if(!(user.settings & USER_ANSI)) {
alert("ANSI supported!");
return;
}
if(!(user.settings & USER_COLOR)) {
alert("Colour not supported!");
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment