Merge pull request #33 from outis1one/claude/remove-lockout-prompt-01V9MEquAmtuNibvnnJE4VLK
Claude/remove lockout prompt 01 v9 m equ amtu nibvnn je4 vlk
This commit is contained in:
@@ -3699,7 +3699,7 @@ first_time_install() {
|
|||||||
echo " • Onboard touchscreen keyboard"
|
echo " • Onboard touchscreen keyboard"
|
||||||
echo
|
echo
|
||||||
read -r -p "Proceed with installation? (y/n): " proceed
|
read -r -p "Proceed with installation? (y/n): " proceed
|
||||||
[[ "$proceed" != "y" ]] && exit 0
|
[[ ! "$proceed" =~ ^[Yy]$ ]] && exit 0
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "[1/27] Installing packages..."
|
echo "[1/27] Installing packages..."
|
||||||
@@ -4040,12 +4040,26 @@ function unlockScreen(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Restore current view using proper method
|
// Restore current view using proper method
|
||||||
|
// For boot unlock, always use attachView for regular views (safe path)
|
||||||
if(showingHidden&&hiddenViews[currentHiddenIndex]){
|
if(showingHidden&&hiddenViews[currentHiddenIndex]){
|
||||||
const[w,h]=mainWindow.getContentSize();
|
try{
|
||||||
mainWindow.setTopBrowserView(hiddenViews[currentHiddenIndex]);
|
const[w,h]=mainWindow.getContentSize();
|
||||||
hiddenViews[currentHiddenIndex].setBounds({x:0,y:0,width:w,height:h});
|
// Ensure view is added to window before setting as top
|
||||||
}else if(views[currentIndex]){
|
mainWindow.addBrowserView(hiddenViews[currentHiddenIndex]);
|
||||||
attachView(currentIndex);
|
mainWindow.setTopBrowserView(hiddenViews[currentHiddenIndex]);
|
||||||
|
hiddenViews[currentHiddenIndex].setBounds({x:0,y:0,width:w,height:h});
|
||||||
|
}catch(e){
|
||||||
|
console.error('[LOCKOUT] Error restoring hidden view:',e);
|
||||||
|
// Fallback to regular views
|
||||||
|
if(views.length>0){
|
||||||
|
showingHidden=false;
|
||||||
|
attachView(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else if(views.length>0){
|
||||||
|
// Use valid index or default to 0
|
||||||
|
const idx=(currentIndex>=0&¤tIndex<views.length)?currentIndex:0;
|
||||||
|
attachView(idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start master timer if not already running (handles boot password case)
|
// Start master timer if not already running (handles boot password case)
|
||||||
|
|||||||
Reference in New Issue
Block a user