mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 22:29:38 +00:00
Added database connection error handling
This commit is contained in:
@@ -28,13 +28,11 @@ class UpdateChecker {
|
||||
|
||||
private registerUpdaterListeners() {
|
||||
autoUpdater.on('error', (err: Error) => {
|
||||
console.log('error callback', err)
|
||||
emitIPCEvent('update-error', err)
|
||||
})
|
||||
|
||||
autoUpdater.on('update-available', (info: UpdateInfo) => {
|
||||
updateAvailable = true
|
||||
console.log('update available callback', info)
|
||||
emitIPCEvent('update-available', info)
|
||||
})
|
||||
}
|
||||
@@ -68,8 +66,7 @@ class GetCurrentVersionHandler implements IPCInvokeHandler<'get-current-version'
|
||||
* @returns the current version of Bridge.
|
||||
*/
|
||||
handler() {
|
||||
console.log('Printing version:', autoUpdater.currentVersion.raw)
|
||||
return autoUpdater.currentVersion.raw // TODO: display this on the about page
|
||||
return autoUpdater.currentVersion.raw
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import * as path from 'path'
|
||||
import { join } from 'path'
|
||||
import { app } from 'electron'
|
||||
|
||||
// Data paths
|
||||
export const dataPath = path.join(app.getPath('userData'), 'bridge_data')
|
||||
export const libraryPath = path.join(dataPath, 'library.db')
|
||||
export const settingsPath = path.join(dataPath, 'settings.json')
|
||||
export const tempPath = path.join(dataPath, 'temp')
|
||||
export const themesPath = path.join(dataPath, 'themes')
|
||||
export const dataPath = join(app.getPath('userData'), 'bridge_data')
|
||||
export const libraryPath = join(dataPath, 'library.db')
|
||||
export const settingsPath = join(dataPath, 'settings.json')
|
||||
export const tempPath = join(dataPath, 'temp')
|
||||
export const themesPath = join(dataPath, 'themes')
|
||||
|
||||
// URL
|
||||
export const serverURL = '64.53.210.87'
|
||||
export const serverURL = 'bridge-db.net'
|
||||
Reference in New Issue
Block a user