Skip to content

Commit

Permalink
Fix error in back to New Tab
Browse files Browse the repository at this point in the history
  • Loading branch information
haanhvu committed Nov 22, 2024
1 parent 8198bdd commit e0c5357
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ private void updateUI() {

if (mViewModel.getBackToNewTabEnabled().getValue().get()) {
mAttachedWindow.showNewTab();
mViewModel.setIsNewTabVisible(true);
mViewModel.enableBackToNewTab(false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,6 @@ public void showPanel(@Windows.PanelType int panelType) {

public void showNewTab() {
if (mNewTab != null) {
hidePanel();
setView(mNewTab, true);
mViewModel.setIsFindInPage(false);
mViewModel.setIsNewTabVisible(true);
Expand Down

0 comments on commit e0c5357

Please sign in to comment.