File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -1683,14 +1683,18 @@ class NetworkTray extends Tray {
1683
1683
this . downloadData ( )
1684
1684
. then ( downloaded => {
1685
1685
// Update the current tray with the downloaded data
1686
- Object . assign ( this , downloaded ) ;
1687
- this . updateAppearance ( ) ;
1688
- this . updateNetworkInfo ( ) ;
1686
+ let parent = this . element . parentElement . __trayInstance
1687
+ this . deleteTray ( ) ;
1688
+ parent . appendChild ( downloaded )
1689
+
1690
+ // Object.assign(this, downloaded);
1691
+ // this.updateAppearance();
1692
+ // this.updateNetworkInfo();
1689
1693
// If there are children, recursively update them
1690
- this . children . forEach ( ( child , index ) => {
1691
- Object . assign ( child , downloaded . children [ index ] ) ;
1692
- child . updateAppearance ( ) ;
1693
- } ) ;
1694
+ // this.children.forEach((child, index) => {
1695
+ // Object.assign(child, downloaded.children[index]);
1696
+ // child.updateAppearance();
1697
+ // });
1694
1698
} )
1695
1699
. catch ( error => {
1696
1700
console . error ( 'Download failed:' , error ) ;
You can’t perform that action at this time.
0 commit comments