@@ -79,10 +79,11 @@ let huntarrUI = {
7979 const settingsSidebarActive = localStorage . getItem ( 'huntarr-settings-sidebar' ) === 'true' ;
8080 const settingsSidebarPreloaded = window . huntarrSettingsSidebarPreload === true ;
8181
82- if ( ( settingsSidebarActive || settingsSidebarPreloaded ) && ( this . currentSection === 'settings' || this . currentSection === 'scheduling' ) ) {
82+ if ( ( settingsSidebarActive || settingsSidebarPreloaded ) && ( this . currentSection === 'settings' || this . currentSection === 'scheduling' || this . currentSection === 'user' ) ) {
8383 this . showSettingsSidebar ( ) ;
8484 } else {
85- // Show main sidebar by default
85+ // Show main sidebar by default and clear settings sidebar preference
86+ localStorage . removeItem ( 'huntarr-settings-sidebar' ) ;
8687 this . showMainSidebar ( ) ;
8788 }
8889
@@ -479,7 +480,8 @@ let huntarrUI = {
479480 newTitle = 'Home' ;
480481 this . currentSection = 'home' ;
481482
482- // Show main sidebar when returning to home
483+ // Show main sidebar when returning to home and clear settings sidebar preference
484+ localStorage . removeItem ( 'huntarr-settings-sidebar' ) ;
483485 this . showMainSidebar ( ) ;
484486
485487 // Disconnect logs if switching away from logs
@@ -497,7 +499,8 @@ let huntarrUI = {
497499 newTitle = 'Logs' ;
498500 this . currentSection = 'logs' ;
499501
500- // Show main sidebar for main sections
502+ // Show main sidebar for main sections and clear settings sidebar preference
503+ localStorage . removeItem ( 'huntarr-settings-sidebar' ) ;
501504 this . showMainSidebar ( ) ;
502505
503506 // Comprehensive LogsModule debugging
@@ -533,7 +536,8 @@ let huntarrUI = {
533536 newTitle = 'Hunt Manager' ;
534537 this . currentSection = 'hunt-manager' ;
535538
536- // Show main sidebar for main sections
539+ // Show main sidebar for main sections and clear settings sidebar preference
540+ localStorage . removeItem ( 'huntarr-settings-sidebar' ) ;
537541 this . showMainSidebar ( ) ;
538542
539543 // Load hunt manager data if the module exists
@@ -575,7 +579,8 @@ let huntarrUI = {
575579 newTitle = 'Apps' ;
576580 this . currentSection = 'apps' ;
577581
578- // Show main sidebar for main sections
582+ // Show main sidebar for main sections and clear settings sidebar preference
583+ localStorage . removeItem ( 'huntarr-settings-sidebar' ) ;
579584 this . showMainSidebar ( ) ;
580585
581586 // Load app connections when switching to Apps
@@ -634,7 +639,8 @@ let huntarrUI = {
634639 newTitle = 'Home' ;
635640 this . currentSection = 'home' ;
636641
637- // Show main sidebar
642+ // Show main sidebar and clear settings sidebar preference
643+ localStorage . removeItem ( 'huntarr-settings-sidebar' ) ;
638644 this . showMainSidebar ( ) ;
639645 }
640646
0 commit comments