runner: periodically check if there's a new version available on github and offer a visit

This commit is contained in:
yuyoyuppe
2020-02-20 17:04:56 +03:00
committed by Andrey Nekrasov
parent c543b7585a
commit 0016836022
12 changed files with 224 additions and 3 deletions

12
src/runner/update_state.h Normal file
View File

@@ -0,0 +1,12 @@
#pragma once
#include <ctime>
#include <optional>
struct UpdateState
{
std::optional<std::time_t> github_update_last_checked_date;
static UpdateState load();
void save();
};