@@ -114,21 +114,24 @@ function renderQuickSection() { //TODO: Make more customizable
114114}
115115
116116shell . openSettings = function ( section ) {
117- Elements . MenuBar . open ( ) ;
118- Elements . MenuBar . settings = document . createElement ( "section" ) ;
119- Elements . MenuBar . settings . className = "card shadow fade scrollable-0 position-absolute w-100" ;
120- Elements . MenuBar . settings . style . zIndex = 100 ;
121- if ( isMobile ) {
122- Elements . MenuBar . settings . style . top = 0 ;
123- Elements . MenuBar . settings . style . left = 0 ;
124- Elements . MenuBar . settings . classList . add ( "flex-column-reverse" )
125- }
126- setTimeout ( e => Elements . MenuBar . settings . classList . add ( "show" ) , FADE_ANIMATION_DURATION ) ;
127- Elements . MenuBar . settings . style . height = "450px" ;
128- fs . readFile ( path . join ( osRoot , "apps" , "settings" , "settings.js" ) ) . then ( code => {
129- new Function ( 'root' , 'sectionToOpen' , code . toString ( ) ) ( Elements . MenuBar . settings , section ) ;
130- } ) ;
131- Elements . MenuBar . prepend ( Elements . MenuBar . settings ) ;
117+ setTimeout ( e => {
118+ Elements . MenuBar . open ( ) ;
119+ Elements . MenuBar . settings = document . createElement ( "section" ) ;
120+ Elements . MenuBar . settings . className = "card shadow fade scrollable-0 position-absolute w-100" ;
121+ Elements . MenuBar . settings . style . zIndex = 100 ;
122+ if ( isMobile ) {
123+ Elements . MenuBar . settings . style . top = 0 ;
124+ Elements . MenuBar . settings . style . left = 0 ;
125+ Elements . MenuBar . settings . classList . add ( "flex-column-reverse" )
126+ }
127+ setTimeout ( e => Elements . MenuBar . settings . classList . add ( "show" ) , FADE_ANIMATION_DURATION ) ;
128+ Elements . MenuBar . settings . style . height = "450px" ;
129+ fs . readFile ( path . join ( osRoot , "apps" , "settings" , "settings.js" ) ) . then ( code => {
130+ new Function ( 'root' , 'sectionToOpen' , code . toString ( ) ) ( Elements . MenuBar . settings , section ) ;
131+ } ) ;
132+ Elements . MenuBar . prepend ( Elements . MenuBar . settings ) ;
133+
134+ } , FADE_ANIMATION_DURATION ) ;
132135} ;
133136
134137function renderNotifications ( ) {
0 commit comments