Prettified Code!

This commit is contained in:
Mashintime 2023-03-28 23:29:51 +00:00 committed by GitHub Action
parent 3193ad1e85
commit 273d4589a5

View file

@ -589,19 +589,19 @@ window.addEventListener("DOMContentLoaded", () => {
switch (os.platform().toLowerCase()) {
case "darwin":
case "linux":
rigctld = rigctld.replace(" ","\\ ");
rigctld = rigctld.replace(" ", "\\ ");
break;
case "win32":
case "win64":
if (rigctld.indexOf(" ") > -1)
rigctld = "\"" + rigctld + "\"";
if (rigctld.indexOf(" ") > -1) rigctld = '"' + rigctld + '"';
break;
default:
console.log("Unhandled OS Platform: ", os.platform());
break;
}
rigctld += " " + document.getElementById("hamlib_rigctld_command").value + " -vv";
rigctld +=
" " + document.getElementById("hamlib_rigctld_command").value + " -vv";
document.getElementById("btnHamlibCopyCommandBi").classList =
"bi bi-clipboard2-check-fill";
clipboard.writeText(rigctld);
@ -2361,7 +2361,7 @@ ipcRenderer.on("action-update-daemon-state", (event, arg) => {
*/
if (arg.tnc_running_state != "stopped" && populateSerial == true) return;
// UPDATE SERIAL DEVICES
// UPDATE SERIAL DEVICES
if (
document.getElementById("hamlib_deviceport").length !=
arg.serial_devices.length
@ -2446,9 +2446,6 @@ ipcRenderer.on("action-update-daemon-state", (event, arg) => {
document.getElementById("audio_output_selectbox").add(option);
}
}
});
// ACTION UPDATE HAMLIB TEST