misc: add pre-init loading popup ("reaching server')
This commit is contained in:
parent
148e71d875
commit
dde2d92efc
3 changed files with 10 additions and 3 deletions
|
|
@ -51,6 +51,7 @@ for (i in callbacks) {
|
|||
}
|
||||
|
||||
///////////////////////
|
||||
|
||||
|
||||
IPC.send('ready')
|
||||
$(document).ready(function(){
|
||||
LOADING = require('./app/utils').loading('Connecting server...')
|
||||
IPC.send('ready')
|
||||
})
|
||||
|
|
|
|||
|
|
@ -44,6 +44,10 @@ module.exports = {
|
|||
|
||||
},
|
||||
|
||||
connected:function(){
|
||||
LOADING.close()
|
||||
},
|
||||
|
||||
stateLoad: function(event,data){
|
||||
var data = data || event
|
||||
data = JSON.parse(data)
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ var vm = require('vm'),
|
|||
module.exports = {
|
||||
|
||||
ready: function(data,clientId) {
|
||||
ipc.send('connected')
|
||||
|
||||
if (settings.read('theme')) ipc.send('applyStyle',settings.read('theme'),clientId)
|
||||
if (settings.read('sessionFile')) this.sessionOpen({path:settings.read('sessionFile')},clientId)
|
||||
var recentSessions = settings.read('recentSessions')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue