mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Send fec message while typing message.
This commit is contained in:
parent
e38fd63de7
commit
cdb7315bbf
|
@ -411,6 +411,10 @@ ipcMain.on("run-tnc-command", (event, arg) => {
|
|||
win.webContents.send("run-tnc-command", arg);
|
||||
});
|
||||
|
||||
ipcMain.on("tnc-fec-iswriting", (event, arg) => {
|
||||
win.webContents.send("run-tnc-command-fec-iswriting");
|
||||
});
|
||||
|
||||
ipcMain.on("request-update-rx-buffer", (event, arg) => {
|
||||
win.webContents.send("action-update-rx-buffer", arg);
|
||||
});
|
||||
|
|
|
@ -40,6 +40,7 @@ var file = "";
|
|||
var filename = "";
|
||||
var callsign_counter = 0;
|
||||
var selected_callsign = "";
|
||||
var lastIsWritingBroadcast = new Date().getTime();
|
||||
// -----------------------------------
|
||||
|
||||
var chatDB = path.join(configFolder, "chatDB");
|
||||
|
@ -269,6 +270,12 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
textarea.rows = lines;
|
||||
|
||||
console.log(textarea.value);
|
||||
if (lastIsWritingBroadcast < new Date().getTime() - (5*1000))
|
||||
{
|
||||
//console.log("Sending FECIsWriting");
|
||||
ipcRenderer.send("tnc-fec-iswriting");
|
||||
lastIsWritingBroadcast = new Date().getTime();
|
||||
}
|
||||
});
|
||||
|
||||
document.getElementById("expand_textarea").addEventListener("click", () => {
|
||||
|
|
|
@ -2431,6 +2431,10 @@ ipcRenderer.on("action-update-rx-buffer", (event, arg) => {
|
|||
});
|
||||
}
|
||||
});
|
||||
ipcRenderer.on('run-tnc-command-fec-iswriting',(event) => {
|
||||
//console.log("Sending sendFecIsWriting");
|
||||
sock.sendFecIsWriting(config.mycall);
|
||||
});
|
||||
|
||||
ipcRenderer.on("run-tnc-command", (event, arg) => {
|
||||
if (arg.command == "save_my_call") {
|
||||
|
|
Loading…
Reference in a new issue