mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-02 05:39:18 +00:00
add open button to background tab toast (#9428)
* add open button to background tab toast * address comment
This commit is contained in:
@@ -163,7 +163,8 @@
|
||||
list-style-image: url('search-page.svg') !important;
|
||||
}
|
||||
|
||||
#open-file-button {
|
||||
#open-file-button,
|
||||
#zen-open-background-tab-button {
|
||||
list-style-image: url('open.svg') !important;
|
||||
}
|
||||
|
||||
|
||||
@@ -689,7 +689,15 @@ var gZenCompactModeManager = {
|
||||
!this._nextTimeWillBeActive &&
|
||||
this.canHideSidebar
|
||||
) {
|
||||
gZenUIManager.showToast('zen-background-tab-opened-toast');
|
||||
gZenUIManager.showToast('zen-background-tab-opened-toast', {
|
||||
button: {
|
||||
id: 'zen-open-background-tab-button',
|
||||
command: () => {
|
||||
const targetWindow = window.ownerGlobal.parent || window;
|
||||
targetWindow.gBrowser.selectedTab = tab;
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
delete this._nextTimeWillBeActive;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user