(trunk web) load the initial preferences asynchronously

This commit is contained in:
Kevin Glowacz
2009-07-28 04:53:08 +00:00
parent 1901c44bf0
commit da9e099cf5
2 changed files with 12 additions and 7 deletions

View File

@@ -113,19 +113,20 @@ Transmission.prototype =
// Get preferences & torrents from the daemon
var tr = this;
this.loadDaemonPrefs( );
var async = false;
this.loadDaemonPrefs( async );
this.initalizeAllTorrents();
this.togglePeriodicRefresh( true );
},
loadDaemonPrefs: function(){
loadDaemonPrefs: function( async ){
var tr = this;
this.remote.loadDaemonPrefs( function(data){
var o = data.arguments;
Prefs.getClutchPrefs( o );
tr.updatePrefs( o );
});
}, async );
},
preloadImages: function() {