Feature: execute commands on chat messages using the context menu (#3738)

This commit is contained in:
xel86
2022-05-22 10:45:54 -04:00
committed by GitHub
parent 7d9c3c65da
commit 4239666934
8 changed files with 103 additions and 9 deletions
+3 -2
View File
@@ -44,8 +44,9 @@ CommandPage::CommandPage()
layout.emplace<EditableModelView>(app->commands->createModel(nullptr))
.getElement();
view->setTitles({"Trigger", "Command"});
view->getTableView()->horizontalHeader()->setStretchLastSection(true);
view->setTitles({"Trigger", "Command", "Show In\nMessage Menu"});
view->getTableView()->horizontalHeader()->setSectionResizeMode(
1, QHeaderView::Stretch);
view->addButtonPressed.connect([] {
getApp()->commands->items.append(
Command{"/command", "I made a new command HeyGuys"});