Skip to content

TagSpaces is an offline, open source, document manager with tagging support

style check

kristiyandd2f576a2c81bb
diff --git a/data/electron/electron.api.js b/data/electron/electron.api.js
index 163224a16..56b096a31 100644
--- a/data/electron/electron.api.js
+++ b/data/electron/electron.api.js
@@ -382,7 +382,7 @@ define(function(require, exports, module) {
});
ipcRenderer.on("next-file", function(event, arg) {
- if(TSCORE.selectedFiles[0]) {
+ if (TSCORE.selectedFiles[0]) {
TSCORE.FileOpener.openFile(TSCORE.PerspectiveManager.getNextFile(TSCORE.FileOpener.getOpenedFilePath()));
} else {
TSCORE.showAlertDialog($.i18n.t("ns.common:selectFile"));
@@ -390,7 +390,7 @@ define(function(require, exports, module) {
});
ipcRenderer.on("previous-file", function(event, arg) {
- if(TSCORE.selectedFiles[0]) {
+ if (TSCORE.selectedFiles[0]) {
TSCORE.FileOpener.openFile(TSCORE.PerspectiveManager.getPrevFile(TSCORE.FileOpener.getOpenedFilePath()));
} else {
TSCORE.showAlertDialog($.i18n.t("ns.common:selectFile"));
diff --git a/data/electron/main.js b/data/electron/main.js
index 0edf1db32..0128cdb3d 100644
--- a/data/electron/main.js
+++ b/data/electron/main.js
@@ -57,11 +57,10 @@ app.on('window-all-closed', function() {
//}
});
-app.on('will-quit', () => {
-
+app.on('will-quit', function() {
// Unregister all shortcuts.
- globalShortcut.unregisterAll()
-})
+ globalShortcut.unregisterAll();
+});
app.on('ready', function(event) {
//console.log(app.getLocale());
@@ -90,14 +89,14 @@ app.on('ready', function(event) {
mainWindow = null;
});
- mainWindow.webContents.on('crashed', function(){
+ mainWindow.webContents.on('crashed', function() {
const options = {
type: 'info',
title: 'Renderer Process Crashed',
message: 'This process has crashed.',
buttons: ['Reload', 'Close']
};
- dialog.showMessageBox(mainWindow ,options, function(index) {
+ dialog.showMessageBox(mainWindow, options, function(index) {
mainWindow.hide();
if (index === 0) {
mainWindow.reload();
@@ -188,7 +187,7 @@ app.on('ready', function(event) {
globalShortcut.register('CommandOrControl+Alt+N', newTextFile);
- globalShortcut.register('CommandOrControl+Alt+I',getNextFile);
+ globalShortcut.register('CommandOrControl+Alt+I', getNextFile);
globalShortcut.register('CommandOrControl+Alt+O', getPreviousFile);
@@ -243,18 +242,18 @@ process.on('uncaughtException', function(error) {
mainWindow.reload();
// Handle the error
/*if (error) {
- const options = {
- type: 'info',
- title: 'Renderer Process Crashed',
- message: 'This process has crashed.',
- buttons: ['Reload', 'Close']
- };
- dialog.showMessageBox(mainWindow, options, function(index) {
- if (index === 0) {
- mainWindow.reload();
- } else {
- mainWindow.close();
- }
- });
- }*/
+ const options = {
+ type: 'info',
+ title: 'Renderer Process Crashed',
+ message: 'This process has crashed.',
+ buttons: ['Reload', 'Close']
+ };
+ dialog.showMessageBox(mainWindow, options, function(index) {
+ if (index === 0) {
+ mainWindow.reload();
+ } else {
+ mainWindow.close();
+ }
+ });
+ }*/
});
\ No newline at end of file
diff --git a/data/js/tagutils.js b/data/js/tagutils.js
index 186485607..94085121a 100644
--- a/data/js/tagutils.js
+++ b/data/js/tagutils.js
@@ -224,7 +224,7 @@ define(function(require, exports, module) {
if (cSecond.length === 1) {
cSecond = '0' + cSecond;
}
- time = '-' + cHour + '' + cMinute + '' + cSecond;
+ time = '~' + cHour + '' + cMinute + '' + cSecond;
}
var milliseconds = '';