mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
LibDesktop: Add menu_name() to AppFile
This really just takes the [App].Name config value and removes the ampersands `&` from the name. These ampersands are hotkeys for the system menu. Instead of typing them twice - error prone - use the fact that name is just menu_name without the ampersand. Remove the ampersand to use as the name and use it as is as the menu_name.
This commit is contained in:
parent
f5dec55fd6
commit
6ab315ae69
3 changed files with 11 additions and 2 deletions
|
@ -30,6 +30,7 @@ public:
|
|||
ByteString filename() const { return m_config->filename(); }
|
||||
|
||||
ByteString name() const;
|
||||
ByteString menu_name() const;
|
||||
ByteString executable() const;
|
||||
ByteString category() const;
|
||||
ByteString description() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue