feat: Added Always on Top Toggle. Closes #5

This commit is contained in:
2026-10-08 11:00:40 -04:00
parent 1df9c2f00c
commit aaeb7636a1
5 changed files with 25 additions and 3 deletions
+9 -2
View File
@@ -1139,9 +1139,9 @@ const monitorTab = (() => {
input.addEventListener('blur', save);
input.addEventListener('keydown', function (ev) {
if (ev.key === 'Enter') save();
if (ev.key === 'Escape')
if (ev.key === 'Escape')
editingLabel = false;
render();
render();
});
});
@@ -1255,6 +1255,13 @@ window.addEventListener('DOMContentLoaded', () => {
updater.init();
changelog.init();
theme.init();
// Always on top toggle
document.getElementById('chk-always-on-top').addEventListener('change', function (e) {
if (window.__TAURI__ && window.__TAURI__.window) {
var current = window.__TAURI__.window.getCurrentWindow();
current.setAlwaysOnTop(e.target.checked);
}
});
document.getElementById('btn-export-all').addEventListener('click', exporter.csvAll);
document.getElementById('btn-export-up').addEventListener('click', exporter.csvUp);
console.log('[Argus] Ready');