Skip to content

Commit

Permalink
Save Single Image now adds the image to the list of recent files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Sep 16, 2024
1 parent 0d74ba5 commit c9f7f2e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib/mrvFl/mrvSaveImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ namespace fs = std::filesystem;
#include "mrvFl/mrvSaveOptions.h"
#include "mrvFl/mrvIO.h"

#include "mrvApp/mrvSettingsObject.h"

#include "mrViewer.h"

#include <FL/platform.H>
Expand Down Expand Up @@ -431,6 +433,13 @@ namespace mrv
view->setFrameView(ui->uiPrefs->uiPrefsAutoFitImage->value());
view->setHudActive(hud);
view->setPresentationMode(presentation);

auto settings = ui->app->settings();
if (file::isReadable(file))
{
settings->addRecentFile(file);
ui->uiMain->fill_menu(ui->uiMenuBar);
}
return ret;
}

Expand Down

0 comments on commit c9f7f2e

Please sign in to comment.