Skip to content
Snippets Groups Projects

Implements #240 custom shortcuts

Merged Nicolas Pope requested to merge feature/240/shortcuts into master
6 files
+ 128
12
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -25,10 +25,12 @@ int main(int argc, char **argv) {
@@ -25,10 +25,12 @@ int main(int argc, char **argv) {
std::map<ftl::UUID, std::vector<ftl::NetConfigurable*>> peerConfigurables;
std::map<ftl::UUID, std::vector<ftl::NetConfigurable*>> peerConfigurables;
 
// FIXME: Move this elsewhere, it is not just for GUI
net->onConnect([&controller, &peerConfigurables](ftl::net::Peer *p) {
net->onConnect([&controller, &peerConfigurables](ftl::net::Peer *p) {
ftl::UUID peer = p->id();
ftl::UUID peer = p->id();
auto cs = controller->getConfigurables(peer);
auto cs = controller->getConfigurables(peer);
for (auto c : cs) {
for (auto c : cs) {
 
//LOG(INFO) << "NET CONFIG: " << c;
ftl::config::json_t *configuration = new ftl::config::json_t;
ftl::config::json_t *configuration = new ftl::config::json_t;
*configuration = controller->get(peer, c);
*configuration = controller->get(peer, c);
if (!configuration->empty()) {
if (!configuration->empty()) {
Loading