feat: Added Always on Top Toggle. Closes #5
This commit is contained in:
+9
-2
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user