1
0

Implemented experimental:menu_main_15505_label option (closes #88) (#91)

This commit is contained in:
Patrick Gaskin
2020-08-28 14:26:12 -04:00
committed by GitHub
parent 851ac584b2
commit 8ada23e16d
2 changed files with 3 additions and 1 deletions

View File

@@ -154,7 +154,9 @@
# option, only the first one takes effect.
#
# <key> the option name, one of:
# menu_main_15505_label - sets the label used for the NickelMenu button on 4.23.15505+
# <val> the option value:
# menu_main_15505_label - the label to use instead of "NickelMenu"
#
# For example, you might have a configuration file named "mystuff" like:
#

View File

@@ -231,7 +231,7 @@ extern "C" __attribute__((visibility("default"))) void _nm_menu_hook2(MainNavVie
MainNavButton_MainNavButton(btn, parent);
MainNavButton_setPixmap(btn, QStringLiteral(":/images/home/main_nav_more.png"));
MainNavButton_setActivePixmap(btn, QStringLiteral(":/images/home/main_nav_more_active.png"));
MainNavButton_setText(btn, "NickelMenu");
MainNavButton_setText(btn, nm_global_config_experimental("menu_main_15505_label") ?: "NickelMenu");
btn->setObjectName("nmButton");
QPushButton *sh = new QPushButton(_this); // HACK: we use a QPushButton as an adaptor so we can connect an old-style signal with the new-style connect without needing a custom QObject