Skip to content

Commit

Permalink
Refactored session functions to session namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Oct 12, 2023
1 parent 596ba86 commit 79318da
Show file tree
Hide file tree
Showing 6 changed files with 500 additions and 485 deletions.
2 changes: 1 addition & 1 deletion mrv2/lib/mrvApp/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ namespace mrv
fileName.substr(fileName.size() - 6, fileName.size()) == ".mrv2s")
{
p.session = true;
load_session(fileName);
session::load(fileName);
return;
}

Expand Down
8 changes: 4 additions & 4 deletions mrv2/lib/mrvFl/mrvCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@ namespace mrv
return;
}

if (save_session(file))
if (session::save(file))
{
auto settingsObject = ui->app->settingsObject();
settingsObject->addRecentFile(file);
Expand All @@ -1678,12 +1678,12 @@ namespace mrv

save_session_impl(file, ui);

set_current_session(file);
session::setCurrent(file);
}

void save_session_cb(Fl_Menu_* m, ViewerUI* ui)
{
const std::string file = current_session();
const std::string file = session::current();
if (file.empty())
return save_session_as_cb(m, ui);

Expand All @@ -1696,7 +1696,7 @@ namespace mrv
if (file.empty())
return;

if (load_session(file))
if (session::load(file))
{
auto settingsObject = ui->app->settingsObject();
settingsObject->addRecentFile(file);
Expand Down
Loading

0 comments on commit 79318da

Please sign in to comment.