Skip to content

Commit

Permalink
FIx auto off enabled by default
Browse files Browse the repository at this point in the history
auto off was enabled by default anyways, even tho ui says its off.
  • Loading branch information
JovannMC committed Dec 18, 2024
1 parent 535254d commit c384f6e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
* Global imports and variables
*/

import { app, BrowserWindow, dialog, ipcMain, shell } from "electron";
// @ts-ignore (for development)
import { autoDetect } from "@serialport/bindings-cpp";
import { app, BrowserWindow, dialog, ipcMain, shell } from "electron";
import fs, { PathLike } from "fs";
import { FPSMode, HaritoraX, MagStatus, SensorAutoCorrection, SensorMode, TrackerModel } from "haritorax-interpreter";
import path, { dirname } from "path";
Expand Down Expand Up @@ -47,7 +46,7 @@ let loggingMode = 1;
let heartbeatInterval = 2000;
let wirelessTrackerEnabled = false;
let wiredTrackerEnabled = false;
let autoOff = true;
let autoOff = false;
let appUpdatesEnabled = true;
let translationsUpdatesEnabled = true;
let updateChannel = "stable";
Expand Down Expand Up @@ -81,7 +80,7 @@ try {
canLogToFile = config.global?.debug?.canLogToFile ?? true;
wirelessTrackerEnabled = config.global?.trackers?.wirelessTrackerEnabled ?? false;
wiredTrackerEnabled = config.global?.trackers?.wiredTrackerEnabled ?? false;
autoOff = config.global?.autoOff ?? true;
autoOff = config.global?.autoOff ?? false;
appUpdatesEnabled = config.global?.updates?.appUpdatesEnabled ?? true;
translationsUpdatesEnabled = config.global?.updates?.translationsUpdatesEnabled ?? true;
updateChannel = config.global?.updates?.updateChannel ?? "stable";
Expand Down

0 comments on commit c384f6e

Please sign in to comment.