mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
(trunk web) load the initial preferences asynchronously
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user