diff --git a/build-plugin.sh b/build-plugin.sh index 9ab2a46..a5c32d5 100755 --- a/build-plugin.sh +++ b/build-plugin.sh @@ -2,7 +2,7 @@ set -eu PLUGIN="u-navigator" -VERSION="2026.06.23.r011" +VERSION="2026.06.23.r012" PKG_DIR="packages" WORK_DIR=".plugin-build" PKG_NAME="${PLUGIN}-${VERSION}.tgz" diff --git a/packages/u-navigator-2026.06.23.r011.tgz b/packages/u-navigator-2026.06.23.r011.tgz deleted file mode 100644 index a96ae1f..0000000 Binary files a/packages/u-navigator-2026.06.23.r011.tgz and /dev/null differ diff --git a/packages/u-navigator-2026.06.23.r012.tgz b/packages/u-navigator-2026.06.23.r012.tgz new file mode 100644 index 0000000..55032fa Binary files /dev/null and b/packages/u-navigator-2026.06.23.r012.tgz differ diff --git a/server/public/app.js b/server/public/app.js index a26c4ac..925dd36 100644 --- a/server/public/app.js +++ b/server/public/app.js @@ -52,7 +52,6 @@ async function init() { } statusText.textContent = `${state.config.roots.length} Root, ${state.config.readOnly ? 'Read-only' : 'Schreibzugriff aktiv'} · ${APP_VERSION}`; openExplorer(state.config.roots[0].path); - openProperties(); openQueue(); } catch (error) { statusText.textContent = error.message; @@ -82,7 +81,18 @@ function openExplorer(initialPath = state.config?.roots?.[0]?.path) { return win; } -function openProperties() { +function openProperties(entry = state.selectedEntry) { + if (entry) { + state.selectedEntry = entry; + } + + const existing = state.windows.find((item) => item.kind === 'properties'); + if (existing) { + focusWindow(existing); + render(); + return existing; + } + return createWindow('Eigenschaften', 'properties', { width: 420, height: 320, @@ -510,6 +520,11 @@ async function promptTransfer(win, entry, type) { await createJob(type, entry.path, `${targetDir.replace(/\/$/, '')}/${entry.name}`, []); } +function showPropertiesForEntry(win, entry) { + selectEntry(win, entry); + openProperties(entry); +} + function showContextMenu(event, win, entry) { const rect = workspace.getBoundingClientRect(); state.contextMenu = { @@ -535,6 +550,7 @@ function renderContextMenu() { if (entry.type === 'directory') { actions.push(['Öffnen', () => loadExplorer(win, entry.path)]); } + actions.push(['Eigenschaften', () => showPropertiesForEntry(win, entry)]); actions.push(['Umbenennen', () => renameEntry(win, entry)]); actions.push(['Kopieren nach...', () => promptTransfer(win, entry, 'copy')]); actions.push(['Verschieben nach...', () => promptTransfer(win, entry, 'move')]); diff --git a/u-navigator.plg b/u-navigator.plg index 891722b..7372836 100644 --- a/u-navigator.plg +++ b/u-navigator.plg @@ -1,7 +1,7 @@ - + ]> @@ -14,7 +14,7 @@ https://git.casaderoll.de/michael/Unraid-Navigator/raw/branch/main/packages/&package; -4b86244d0a4d43a5df4e86fc5569af81 +3ab1180514677a7270013846b08706b0