move "Delete message" to a sub-menu (#6100)
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
## Unversioned
|
## Unversioned
|
||||||
|
|
||||||
|
- Minor: Moved the "Delete message" menu option into a "Moderate" sub-menu. (#6100)
|
||||||
- Bugfix: Fixed the channel name input not being focused when opening the select-channel dialog. (#6096)
|
- Bugfix: Fixed the channel name input not being focused when opening the select-channel dialog. (#6096)
|
||||||
- Bugfix: Fixed inputs in dialogs not having a border around and padding in them. (#6098)
|
- Bugfix: Fixed inputs in dialogs not having a border around and padding in them. (#6098)
|
||||||
- Dev: Temporarily disable precompiled header support for macOS. (#6104)
|
- Dev: Temporarily disable precompiled header support for macOS. (#6104)
|
||||||
|
|||||||
@@ -2578,7 +2578,11 @@ void ChannelView::addMessageContextMenuItems(QMenu *menu,
|
|||||||
if (!layout->getMessage()->id.isEmpty() && twitchChannel &&
|
if (!layout->getMessage()->id.isEmpty() && twitchChannel &&
|
||||||
twitchChannel->hasModRights())
|
twitchChannel->hasModRights())
|
||||||
{
|
{
|
||||||
menu->addAction(
|
menu->addSeparator();
|
||||||
|
auto *moderateAction = menu->addAction("Mo&derate");
|
||||||
|
auto *moderateMenu = new QMenu(menu);
|
||||||
|
moderateAction->setMenu(moderateMenu);
|
||||||
|
moderateMenu->addAction(
|
||||||
"&Delete message", [twitchChannel, id = layout->getMessage()->id] {
|
"&Delete message", [twitchChannel, id = layout->getMessage()->id] {
|
||||||
twitchChannel->deleteMessagesAs(
|
twitchChannel->deleteMessagesAs(
|
||||||
id, getApp()->getAccounts()->twitch.getCurrent().get());
|
id, getApp()->getAccounts()->twitch.getCurrent().get());
|
||||||
|
|||||||
Reference in New Issue
Block a user