Add manual Google Drive settings backup and restore

Refs #84
This commit is contained in:
agrynco committed 2026-11-24 21:51:42 +02:00
1 parent ee9b953533
commit 15b251e7fb
14 files changed
+1674 -26

No files matched your search

+1 -6
View File
@@ -1,7 +1,7 @@
#include "sync.h"
#include "http_handle.h"
#include "mouse_buttons.h"
#include "json.hpp"
#include <winhttp.h>
#include <wincred.h>
#include <set>
#include <algorithm>
@@ -30,11 +30,6 @@ bool safePath(const std::wstring &s)
s.find(L"//") != s.npos) return false;
return s.find_first_not_of(L"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-/") == s.npos;
}
struct HttpHandle
{
HINTERNET h{};
~HttpHandle() { if (h) WinHttpCloseHandle(h); }
};
class OpenBao final : public SyncProvider
{
SyncConfig config;