Fixed lingering menus when switching screens and fixed hour timer for media menu.

This commit is contained in:
Jas Singh
2024-06-23 20:57:52 -07:00
parent 5eef18485d
commit 42b8948e48
9 changed files with 37 additions and 12 deletions

View File

@@ -13,6 +13,13 @@ import { Power } from "./power/index.js";
import { BarItemBox } from "../shared/barItemBox.js";
const closeAllMenus = () => {
App.closeWindow("bluetoothmenu");
App.closeWindow("audiomenu");
App.closeWindow("networkmenu");
App.closeWindow("mediamenu");
}
// layout of the bar
const Left = (monitor, wsMap) => {
return Widget.Box({
@@ -114,4 +121,4 @@ const BarAlt = (monitor = 0, wsMap) => {
});
};
export { Bar, BarAlt };
export { Bar, BarAlt, closeAllMenus };