Fix navigation menu tab switching function name

Resolved ReferenceError: showView is not defined when clicking sites in nav menu.

Changes:
- Changed showView() to attachView() - the correct function name
- Added manualNavigationMode=true to stop auto-rotation on manual navigation
- Added markActivity() to reset inactivity timer
- Added inactivityExtensionUntil=0 to clear extensions
- Added additional logging for debugging
- Added error logging for invalid view indices

This makes navigation menu behavior consistent with nextTab() and
previousTab() functions throughout the codebase.
This commit is contained in:
Claude
2025-12-02 21:39:08 +00:00
parent 5db15802a0
commit 31f8d2f973
+8 -1
View File
@@ -5306,8 +5306,15 @@ function createWindow(){
}
const viewIndex=tabIndexToViewIndex[tabIndex];
if(viewIndex!==undefined&&viewIndex>=0&&viewIndex<views.length){
console.log('[NAV] Switching to view index '+viewIndex);
manualNavigationMode=true;
currentIndex=viewIndex;
showView(currentIndex);
attachView(currentIndex);
markActivity();
inactivityExtensionUntil=0;
console.log('[NAV] Navigation complete → manualNavigationMode=TRUE');
}else{
console.error('[NAV] Invalid view index:',viewIndex);
}
});