From 1c15d79f3d405636a748a2331d5553713da9d9ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Sverre=20Lien=20Sell=C3=A6g?= Date: Sun, 23 May 2021 19:02:24 +0200 Subject: [PATCH] small improvemnet --- src/orders.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/orders.cpp b/src/orders.cpp index 9d6a77c..fa96382 100644 --- a/src/orders.cpp +++ b/src/orders.cpp @@ -20,10 +20,10 @@ const fs::path &orders::get_path() { orders::orders(const with_data_directory &dir) : json(json::array()), data_directory(dir) { - if (!fs::exists(get_path())) { - write(); - } else { + if (fs::exists(get_path())) { load(); + } else { + write(); } }