[Finder에서 열기] 버튼과 관련 기능 삭제
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const { ipcMain, dialog, shell } = require('electron');
|
||||
const { ipcMain, dialog } = require('electron');
|
||||
|
||||
function register(mainWindow) {
|
||||
ipcMain.handle('select-folder', async () => {
|
||||
@@ -10,9 +10,6 @@ function register(mainWindow) {
|
||||
return result.filePaths[0];
|
||||
});
|
||||
|
||||
ipcMain.handle('reveal-folder', async (_event, folderPath) => {
|
||||
shell.openPath(folderPath);
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = { register };
|
||||
@@ -5,6 +5,5 @@ contextBridge.exposeInMainWorld('api', {
|
||||
listImages: (folder) => ipcRenderer.invoke('list-images', folder),
|
||||
readImage: (path) => ipcRenderer.invoke('read-image', path),
|
||||
renameFiles: (args) => ipcRenderer.invoke('rename-files', args),
|
||||
revealFolder: (folder) => ipcRenderer.invoke('reveal-folder', folder),
|
||||
onFullscreenChange: (callback) => ipcRenderer.on('fullscreen-change', (_e, v) => callback(v)),
|
||||
});
|
||||
|
||||
@@ -22,10 +22,6 @@
|
||||
</div>
|
||||
<div class="separator"></div>
|
||||
<button class="btn btn-info active" id="btn-preview-toggle">🔍 미리보기</button>
|
||||
<div style="margin-left:auto; display:flex; align-items:center; gap:8px;">
|
||||
<span class="dir-path" id="dir-path">폴더를 선택하세요</span>
|
||||
<button class="btn btn-warning" id="btn-reveal" disabled>Finder에서 열기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="format-bar">
|
||||
@@ -52,6 +48,7 @@
|
||||
<div id="statusbar">
|
||||
<div class="status-dot" id="status-dot"></div>
|
||||
<span id="status-text">준비</span>
|
||||
<span class="dir-path" id="dir-path" style="margin-left:auto;">폴더를 선택하세요</span>
|
||||
</div>
|
||||
|
||||
<div id="rubber-band"></div>
|
||||
|
||||
@@ -13,7 +13,6 @@ const btnOpen = document.getElementById('btn-open');
|
||||
const btnSortName = document.getElementById('btn-sort-name');
|
||||
const btnSortDate = document.getElementById('btn-sort-date');
|
||||
const btnRename = document.getElementById('btn-rename');
|
||||
const btnReveal = document.getElementById('btn-reveal');
|
||||
const inputPrefix = document.getElementById('input-prefix');
|
||||
const inputDigits = document.getElementById('input-digits');
|
||||
const previewName = document.getElementById('preview-name');
|
||||
@@ -65,9 +64,6 @@ btnPreviewToggle.addEventListener('click', () => {
|
||||
btnSortName.addEventListener('click', () => sortFiles('name'));
|
||||
btnSortDate.addEventListener('click', () => sortFiles('date'));
|
||||
btnRename.addEventListener('click', doRename);
|
||||
btnReveal.addEventListener('click', () => {
|
||||
if (state.currentFolder) window.api.revealFolder(state.currentFolder);
|
||||
});
|
||||
|
||||
// ── 폴더 열기 ────────────────────────────────────
|
||||
async function openFolder() {
|
||||
@@ -96,7 +92,6 @@ async function openFolder() {
|
||||
renderGrid();
|
||||
updatePreview();
|
||||
btnRename.disabled = false;
|
||||
btnReveal.disabled = false;
|
||||
}
|
||||
|
||||
// ── 그리드 렌더링 ────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user