1
Fork 0
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:
Hugh Davenport 2024-01-04 08:19:34 +13:00 committed by Andrew Kaster
parent f5dec55fd6
commit 6ab315ae69
3 changed files with 11 additions and 2 deletions

View file

@ -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;