verilog: hide controls when no crt

This commit is contained in:
Steven Hugg 2020-09-23 12:00:47 -05:00
parent ae31f8308f
commit bf5248685f
2 changed files with 7 additions and 1 deletions

View File

@ -1686,6 +1686,7 @@ function setupDebugControls() {
uitoolbar.add('ctrl+alt+l', 'Run To Line', 'glyphicon-save', runToCursor).prop('id','dbg_toline');
}
uitoolbar.newGroup();
uitoolbar.grp.prop('id','xtra_bar');
// add menu clicks
$(".dropdown-menu").collapse({toggle: false});
$("#item_new_file").click(_createNewFile);
@ -1898,7 +1899,7 @@ function showWelcomeMessage() {
///////////////////////////////////////////////////
var qs = (function (a : string[]) {
export var qs = (function (a : string[]) {
if (!a || a.length == 0)
return {};
var b = {};

View File

@ -657,8 +657,12 @@ var VerilogPlatform = function(mainElement, options) {
const IGNORE_SIGNALS = ['clk','reset'];
trace_signals = trace_signals.filter((v) => { return IGNORE_SIGNALS.indexOf(v.name)<0; }); // remove clk, reset
$("#speed_bar").show();
$("#run_bar").show();
$("#xtra_bar").show();
} else {
$("#speed_bar").hide();
$("#run_bar").hide();
$("#xtra_bar").hide();
}
}
}
@ -834,3 +838,4 @@ var VerilogVGAPlatform = function(mainElement, options) {
PLATFORMS['verilog'] = VerilogPlatform;
PLATFORMS['verilog-vga'] = VerilogVGAPlatform;
PLATFORMS['verilog-test'] = VerilogPlatform;