Skip to content
Snippets Groups Projects

Resolves #343 GUI and Frame Refactor

Merged Nicolas Pope requested to merge feature/gui2 into master
4 files
+ 69
7
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -22,10 +22,14 @@ void AddCtrl::show() {
}
ftl::Configurable *AddCtrl::add(const std::string &uri) {
if (io->feed()->sourceActive(uri)) {
io->feed()->remove(uri);
} else {
io->feed()->add(uri);
try {
if (io->feed()->sourceActive(uri)) {
io->feed()->remove(uri);
} else {
io->feed()->add(uri);
}
} catch (const ftl::exception &e) {
screen->showError("Exception", e.what());
}
return nullptr;
}
@@ -35,7 +39,7 @@ std::vector<std::string> AddCtrl::getHosts() {
}
std::vector<std::string> AddCtrl::getGroups() {
return {};
return std::move(io->feed()->availableGroups());
}
std::set<ftl::stream::SourceInfo> AddCtrl::getRecent() {
Loading