mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 685868 - Don't update thumbnails if tablet mode hasn't changed. r=lucasr
This commit is contained in:
parent
bb9deb9e7d
commit
e1f96e5512
@ -549,7 +549,12 @@ var BrowserUI = {
|
||||
},
|
||||
|
||||
updateTabletLayout: function updateTabletLayout() {
|
||||
if (Util.isTablet({ forceUpdate: true })) {
|
||||
let wasTablet = Elements.urlbarState.hasAttribute("tablet");
|
||||
let isTablet = Util.isTablet({ forceUpdate: true });
|
||||
if (wasTablet == isTablet)
|
||||
return;
|
||||
|
||||
if (isTablet) {
|
||||
this.unlockToolbar();
|
||||
Elements.urlbarState.setAttribute("tablet", "true");
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user