Skip to content
Snippets Groups Projects
Verified Commit e559abe1 authored by azubieta's avatar azubieta
Browse files

Allow toolbox to be visible

parent 36c66fad
No related branches found
No related tags found
1 merge request!2Merge browser view
......@@ -102,8 +102,7 @@ function createWindow() {
if (isDebugMode) {
mainWindow.webContents.openDevTools({mode: 'detach'});
}
else {
} else {
mainWindow.setMenu(null);
}
......@@ -144,7 +143,7 @@ function createView() {
const windowBounds = mainWindow.getBounds();
mainView.setBounds({
x: 0,
y: 0,
y: 40,
width: windowBounds.width,
height: windowBounds.height
});
......@@ -237,8 +236,7 @@ function isFile(path) {
try {
const stats = fs.statSync(path);
return stats.isFile();
}
catch (error) {
} catch (error) {
console.error(error);
return false;
}
......@@ -248,8 +246,7 @@ function isDirectory(path) {
try {
const stats = fs.statSync(path);
return stats.isDirectory();
}
catch (error) {
} catch (error) {
console.error(error);
return false;
}
......@@ -299,8 +296,7 @@ function removePreviewpic(itemKey) {
app.on('ready', async () => {
if (await startOcsManager()) {
createWindow();
}
else {
} else {
app.quit();
}
});
......@@ -360,19 +356,15 @@ ipcMain.on('store', (event, key, value) => {
ipcMain.on('previewpic', (event, kind, itemKey, url) => {
if (kind === 'directory') {
event.returnValue = previewpicDirectory;
}
else if (kind === 'path' && itemKey) {
} else if (kind === 'path' && itemKey) {
event.returnValue = `${previewpicDirectory}/${previewpicFilename(itemKey)}`;
}
else if (kind === 'download' && itemKey && url) {
} else if (kind === 'download' && itemKey && url) {
downloadPreviewpic(itemKey, url);
event.returnValue = undefined;
}
else if (kind === 'remove' && itemKey) {
} else if (kind === 'remove' && itemKey) {
removePreviewpic(itemKey);
event.returnValue = undefined;
}
else {
} else {
event.returnValue = false;
}
});
......@@ -31,9 +31,6 @@ ToolbarComponent.define('app-toolbar');
import OmniboxComponent from './OmniboxComponent.js';
OmniboxComponent.define('app-omnibox');
//import WebviewComponent from './WebviewComponent.js';
//WebviewComponent.define('app-webview');
import CollectiondialogComponent from './CollectiondialogComponent.js';
CollectiondialogComponent.define('app-collectiondialog');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment