Browse Source

load if file exist

master
Jørgen Sverre Lien Sellæg 5 years ago
parent
commit
f391da49d4
  1. 2
      src/orders.cpp

2
src/orders.cpp

@ -22,6 +22,8 @@ orders::orders(const with_data_directory &dir)
: json(json::array()), data_directory(dir) { : json(json::array()), data_directory(dir) {
if (!fs::exists(get_path())) { if (!fs::exists(get_path())) {
write(); write();
} else {
load();
} }
} }

Loading…
Cancel
Save