mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1157526 - (Part 1) Replace "New tab" toast with snackbar. r=mcomella
This commit is contained in:
parent
4c5cfc3859
commit
194c185b7b
@ -682,9 +682,9 @@ var BrowserApp = {
|
||||
let newtabStrings = Strings.browser.GetStringFromName("newtabpopup.opened");
|
||||
let label = PluralForm.get(1, newtabStrings).replace("#1", 1);
|
||||
let buttonLabel = Strings.browser.GetStringFromName("newtabpopup.switch");
|
||||
NativeWindow.toast.show(label, "long", {
|
||||
button: {
|
||||
icon: "drawable://switch_button_icon",
|
||||
|
||||
Snackbars.show(label, Snackbars.LENGTH_LONG, {
|
||||
action: {
|
||||
label: buttonLabel,
|
||||
callback: () => { BrowserApp.selectTab(tab); },
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user