Start implementing new workflow

This commit is contained in:
Aang23 2022-05-07 18:16:24 +02:00
parent 6b99e27ed6
commit 6ff29ba66c
6 changed files with 48 additions and 23 deletions

View file

@ -4,8 +4,8 @@
#include "core/pipeline.h"
#include "error.h"
#include "viewer/viewer.h"
#include "core/config.h"
#include "main_ui.h"
namespace satdump
{
@ -57,10 +57,7 @@ namespace satdump
if (std::filesystem::exists(output_file + "/dataset.json"))
{
logger->info("Opening viewer!");
std::shared_ptr<ViewerApplication> viewer = std::make_shared<ViewerApplication>();
viewer->loadDatasetInViewer(output_file + "/dataset.json");
in_app = true;
current_app = viewer;
viewer_app->loadDatasetInViewer(output_file + "/dataset.json");
}
}