Refactor Tab completion for Twitch commands (#3144)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Paweł
2021-12-26 14:21:52 +01:00
committed by GitHub
parent 94f7f09e73
commit 1682f0fb36
9 changed files with 125 additions and 77 deletions
@@ -23,11 +23,11 @@ class CommandModel;
class CommandController final : public Singleton
{
public:
SignalVector<Command> items_;
SignalVector<Command> items;
QString execCommand(const QString &text, std::shared_ptr<Channel> channel,
bool dryRun);
QStringList getDefaultTwitchCommandList();
QStringList getDefaultChatterinoCommandList();
virtual void initialize(Settings &, Paths &paths) override;
virtual void save() override;
@@ -61,7 +61,7 @@ private:
std::unique_ptr<pajlada::Settings::Setting<std::vector<Command>>>
commandsSetting_;
QStringList commandAutoCompletions_;
QStringList defaultChatterinoCommandAutoCompletions_;
};
} // namespace chatterino