feat: add sidebar toggle functionality

Signed-off-by: Elysia <a.elysia@proton.me>
This commit is contained in:
Elysia
2026-02-17 23:23:20 +08:00
parent 7b3bd110a9
commit c27c1f1697
4 changed files with 57 additions and 21 deletions

View File

@@ -63,17 +63,17 @@ let win: BrowserWindow | null = null;
const preload = path.join(__dirname, "../preload/index.mjs");
const indexHtml = path.join(RENDERER_DIST, "index.html");
// Use app.getVersion() when the app is packaged.
// Use app.getVersion() when the app is packaged.
const getUserAgent = (): string => {
const version = app && app.isPackaged
? app.getVersion()
: process.env.npm_package_version || "dev";
const version =
app && app.isPackaged
? app.getVersion()
: process.env.npm_package_version || "dev";
return `APM-Store/${version}`;
};
logger.info("User Agent: " + getUserAgent());
async function createWindow() {
win = new BrowserWindow({
title: "APM AppStore",