refactor: Un-singletonize Paths & Updates (#5092)
This commit is contained in:
@@ -261,7 +261,7 @@ const std::unordered_map<QString, VariableReplacer> COMMAND_VARS{
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
void CommandController::initialize(Settings &, Paths &paths)
|
||||
void CommandController::initialize(Settings &, const Paths &paths)
|
||||
{
|
||||
// Update commands map when the vector of commands has been updated
|
||||
auto addFirstMatchToMap = [this](auto args) {
|
||||
|
||||
@@ -33,7 +33,7 @@ public:
|
||||
bool dryRun);
|
||||
QStringList getDefaultChatterinoCommandList();
|
||||
|
||||
void initialize(Settings &, Paths &paths) override;
|
||||
void initialize(Settings &, const Paths &paths) override;
|
||||
void save() override;
|
||||
|
||||
CommandModel *createModel(QObject *parent);
|
||||
|
||||
Reference in New Issue
Block a user