Skip to content

Commit

Permalink
Fixing mistake in previous version data caching when updating program
Browse files Browse the repository at this point in the history
  • Loading branch information
testpushpleaseignore committed May 31, 2022
1 parent 835c73f commit dcb2ab2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ void Application::SaveDbOnNewVersion() {
std::string version = data_->Get("version", "0.5c");
// We call this just after login, so we didn't pulled tabs for the first time ; so "tabs" shouldn't exist in the DB
// This way we don't create an useless data_save_version folder on the first time you run acquisition
bool first_start = data_->Get("tabs", "first_time") == "first_time" ||
(data_->GetTabs(ItemLocationType::STASH).length() == 0 &&
data_->GetTabs(ItemLocationType::CHARACTER).length() == 0);

bool first_start = data_->Get("tabs", "first_time") == "first_time" &&
data_->GetTabs(ItemLocationType::STASH).length() == 0 &&
data_->GetTabs(ItemLocationType::CHARACTER).length() == 0;
if (version != VERSION_NAME && !first_start) {
QString data_path = Filesystem::UserDir().c_str() + QString("/data");
QString save_path = data_path + "_save_" + version.c_str();
Expand Down

0 comments on commit dcb2ab2

Please sign in to comment.