Skip to main content

Topic: Custom menu: support on duplicate entry (Read 250 times)

  • fullessness
  • [*]
Custom menu: support on duplicate entry
In my opera12 I have the context menu of document window customized with the first and last items in the list with the close-tab command.
I have tried to do some things in Otter editing webWidget.json file, but seems that the last occurance wins over the other.

Is it a "feature" or is it a bug? And if this is a feature, is there the possibility to change it to have the flexibility like in opera12 ?

  • Emdek
  • [*][*][*][*][*]
  • Moderator
Re: Custom menu: support on duplicate entry
Reply #1
@fullessness, please post your menu definition, I'll take a look.
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.

  • fullessness
  • [*]
Re: Custom menu: support on duplicate entry
Reply #2
Thanks again Emdek, here it is the extract I'm talking about
Code: [Select]
{
"type": "include",
"includeIn": "standard",
"actions":
[
"CloseTab", // this command doesn't appear
"GoBack",
"GoForward",
"Rewind",
"FastForward",
"separator",
"ReloadOrStop",
"ScheduleReload",
"separator",
"BookmarkPage",
"CopyAddress",
"Print",

....

"ContentBlocking",
"WebsitePreferences",
"Preferences",
"separator",
"FullScreen",
"CloseTab" // this wins over first item
   ]
}

  • Emdek
  • [*][*][*][*][*]
  • Moderator
Re: Custom menu: support on duplicate entry
Reply #3
@fullessness, indeed, but I'm afraid that it's limitation of QMenu, but there might be some way to workaround it, maybe it will make it into next weekly.
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.

  • fullessness
  • [*]
Re: Custom menu: support on duplicate entry
Reply #4
this would be awesome, thx! :up:

  • Emdek
  • [*][*][*][*][*]
  • Moderator
Re: Custom menu: support on duplicate entry
Reply #5
@fullessness, just in case, it haven't landed yet, we need to rethink it first.
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.

  • fullessness
  • [*]
Re: Custom menu: support on duplicate entry
Reply #6
I will wait for the best implementation you can write! Thx!