mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
disabled rigctl and direct control on win
also fixed app loading for linux
This commit is contained in:
parent
07a42c20be
commit
e9d89941ce
24
gui/main.js
24
gui/main.js
|
@ -172,21 +172,23 @@ app.whenReady().then(() => {
|
|||
createWindow();
|
||||
|
||||
// start daemon by checking os
|
||||
// https://stackoverflow.com/a/5775120
|
||||
console.log("Trying to start daemon binary")
|
||||
|
||||
if(os.platform()=='linux' || os.platform()=='darwin'){
|
||||
daemonProcess = exec('./tnc/daemon', function callback(err, stdout, stderr) {
|
||||
if (err) {
|
||||
console.log(os.platform());
|
||||
console.error(err);
|
||||
console.error("Can't start daemon binary");
|
||||
console.error("--> this is only working with the app bundle and a precompiled binaries");
|
||||
return;
|
||||
}
|
||||
console.log(stdout);
|
||||
|
||||
if(os.platform()=='linux'){
|
||||
|
||||
daemonProcess = exec('./tnc/daemon', [])
|
||||
|
||||
daemonProcess.on('error', (err) => {
|
||||
console.log(err);
|
||||
});
|
||||
|
||||
daemonProcess.on('message', (data) => {
|
||||
console.log(data);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
if(os.platform()=='win32' || os.platform()=='win64'){
|
||||
|
||||
|
|
|
@ -41,6 +41,14 @@ window.addEventListener('DOMContentLoaded', () => {
|
|||
})
|
||||
*/
|
||||
|
||||
|
||||
// DISABLE HAMLIB DIRECT AND RIGCTL ON WINDOWS
|
||||
if(os.platform()=='win32' || os.platform()=='win64'){
|
||||
|
||||
document.getElementById("radio-control-switch1").style.disabled = true;
|
||||
document.getElementById("radio-control-switch2").style.disabled = true;
|
||||
}
|
||||
|
||||
// ENABLE TOOLTIPS EVERYWHERE
|
||||
// https://getbootstrap.com/docs/5.1/components/tooltips/
|
||||
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
|
||||
|
|
Loading…
Reference in a new issue