Skip to content
Snippets Groups Projects

Resolves #343 GUI and Frame Refactor

Merged Nicolas Pope requested to merge feature/gui2 into master
Compare and Show latest version
3 files
+ 11
4
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -13,14 +13,19 @@ void AddCtrl::init() {
}
void AddCtrl::show() {
if (screen->childIndex(window) == -1) {
if (!window || screen->childIndex(window) == -1) {
window = new ftl::gui2::AddSourceWindow(screen, this);
}
window->requestFocus();
window->setVisible(true);
window->requestFocus();
screen->performLayout();
}
void AddCtrl::disposeWindow() {
window->dispose();
window = nullptr;
}
ftl::Configurable *AddCtrl::add(const std::string &uri) {
try {
if (io->feed()->sourceActive(uri)) {
Loading