mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 276f149e29e0
This commit is contained in:
parent
e47b5c73e8
commit
3f70c5bed3
@ -7765,11 +7765,13 @@ var TabContextMenu = {
|
||||
menuItems[i].disabled = disabled;
|
||||
|
||||
// Session store
|
||||
document.getElementById("context_undoCloseTab").disabled =
|
||||
// XXXzeniko should't we just disable this item as we disable
|
||||
// the tabbrowser-multiple items above - for consistency?
|
||||
document.getElementById("context_undoCloseTab").hidden =
|
||||
Cc["@mozilla.org/browser/sessionstore;1"].
|
||||
getService(Ci.nsISessionStore).
|
||||
getClosedTabCount(window) == 0;
|
||||
|
||||
|
||||
// Only one of pin/unpin should be visible
|
||||
document.getElementById("context_pinTab").hidden = this.contextTab.pinned;
|
||||
document.getElementById("context_unpinTab").hidden = !this.contextTab.pinned;
|
||||
|
Loading…
Reference in New Issue
Block a user