Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 9be94c1

Browse files
keianhzobluemarvin
authored andcommitted
Do not make multi-windows visible if there is only one window (#1675)
* Do not make multi-windows visible if there is only one window * Keep the multi-window controls if in private mode too
1 parent 686fdbe commit 9be94c1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • app/src/common/shared/org/mozilla/vrbrowser/ui/widgets

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,9 @@ public void enterResizeMode() {
720720

721721
public void exitResizeMode() {
722722
for (WindowWidget window : getCurrentWindows()) {
723-
window.getTopBar().setVisible(true);
723+
if (getCurrentWindows().size() > 1 || isInPrivateMode()) {
724+
window.getTopBar().setVisible(true);
725+
}
724726
}
725727
}
726728

0 commit comments

Comments
 (0)