| 116 | } |
| 117 | |
| 118 | void ZepEditor::OnFileChanged(const ZepPath& path) |
| 119 | { |
| 120 | if (path.filename() == "zep.cfg") |
| 121 | { |
| 122 | ZLOG(INFO, "Reloading config"); |
| 123 | LoadConfig(path); |
| 124 | Broadcast(std::make_shared<ZepMessage>(Msg::ConfigChanged)); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | // If you pass a valid path to a 'zep.cfg' file, then editor settings will serialize from that |
| 129 | // You can even edit it inside zep for immediate changes :) |
no test coverage detected