mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 09:44:35 +00:00
Fix wrong source when creating new task or event
This commit is contained in:
parent
893fcc11e3
commit
ab2200ecc1
3 changed files with 18 additions and 1 deletions
|
@ -28,13 +28,13 @@ class Mirai
|
|||
void deleteSource(int id);
|
||||
void unloadAllSources();
|
||||
void save();
|
||||
std::optional<std::reference_wrapper<DataProvider>> getSourceByName(const std::string &name);
|
||||
|
||||
std::vector<std::unique_ptr<Source>> &getSources();
|
||||
const std::vector<std::string> &getTags();
|
||||
|
||||
// Returns a non owning pointer to the requested resource or nullptr if not found.
|
||||
Source *getSourceById(int id);
|
||||
Source *getSourceByName(const std::string &name);
|
||||
|
||||
void onSourceAdded(std::function<void(Source *)> f);
|
||||
void onSourceEdited(std::function<void(Source *)> f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue