Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Djtpj committed Oct 28, 2023
2 parents c8c442b + 6b99aa3 commit 2b013a4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const fs = require("fs");
const AdmZip = require("adm-zip");
const PluginManager = require("./plugins")
const {autoUpdater} = require("electron-updater");
const os = require("os");

let mainWindow;

Expand Down Expand Up @@ -539,6 +540,10 @@ function isAppBundled(){
}

function installUpdates(){
if (os.platform() !== "win32"){
openLinkInBrowser(null, "https://github.com/atticuscornett/mimacro/releases/latest");
return;
}
autoUpdater.checkForUpdates();
autoUpdater.on("update-downloaded", () => {
autoUpdater.quitAndInstall();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mimacro",
"version": "0.9.0",
"version": "1.0.0",
"description": "The ultimate microcontroller macro solution",
"main": "index.js",
"scripts": {
Expand Down
Binary file modified public/firmware/arduino/uno/build/arduino.avr.uno/uno.ino.elf
Binary file not shown.
6 changes: 3 additions & 3 deletions src/Components/FloatingPopup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
if ((Number(x) + popup.offsetWidth) > window.innerWidth){
modX -= popup.offsetWidth;
}
if (Number(modX) + popup.offsetWidth > window.innerWidth){
modX = window.innerWidth - 10 - popup.offsetWidth;
if (Number(modX) + popup.offsetWidth > document.body.clientWidth){
modX = document.body.clientWidth - 10 - popup.offsetWidth;
}
if ((Number(y) + popup.offsetHeight) > (window.innerHeight + window.scrollY)){
modY -= popup.offsetHeight;
Expand All @@ -54,7 +54,7 @@
$: {
if (show){
placePopup();
setTimeout(() => {document.addEventListener("click", clickListener);}, 10);
setTimeout(() => {placePopup(); document.addEventListener("click", clickListener);}, 50);
}
else{
document.removeEventListener("click", clickListener);
Expand Down

0 comments on commit 2b013a4

Please sign in to comment.