From 3ce39b7cc694c33409fdcd340438848dc0fa8275 Mon Sep 17 00:00:00 2001 From: haanhvu Date: Sun, 1 Dec 2024 13:50:19 +0700 Subject: [PATCH] Try to fix error in new tab - web page - library backing loop again --- .../shared/com/igalia/wolvic/ui/widgets/WindowWidget.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/common/shared/com/igalia/wolvic/ui/widgets/WindowWidget.java b/app/src/common/shared/com/igalia/wolvic/ui/widgets/WindowWidget.java index a96e266c7bd..9eed435ead8 100644 --- a/app/src/common/shared/com/igalia/wolvic/ui/widgets/WindowWidget.java +++ b/app/src/common/shared/com/igalia/wolvic/ui/widgets/WindowWidget.java @@ -594,6 +594,7 @@ private void hidePanel(boolean switchSurface) { } else { mViewModel.setCurrentContentType(Windows.ContentType.WEB_CONTENT); } + mViewModel.enableBackToNewTab(false); } public void hideNewTab() { @@ -2072,13 +2073,13 @@ WResult onLoadRequest(WSession aSession, @NonNull LoadRequest aReq showNewTab(); } else { - hideNewTab(); hideLibraryPanel(); + hideNewTab(); } } else { - hideNewTab(); hideLibraryPanel(); + hideNewTab(); mViewModel.setCurrentContentType(Windows.ContentType.WEB_CONTENT); mViewModel.setUrl(uri.toString()); }