Added documentation

This commit is contained in:
tsommer committed 2024-05-04 10:55:00 +02:00
1 parent 0859b1f2ec
commit 418f458118
11 files changed
+162 -3

No files matched your search

@@ -13,8 +13,14 @@ public partial class MainLayout : LayoutComponentBase
protected override async Task OnInitializedAsync()
{
//
// We use the Tauri API (Rust) to get the data and config directories
// for this app.
//
var dataDir = await this.JsRuntime.InvokeAsync<string>("window.__TAURI__.path.appLocalDataDir");
var configDir = await this.JsRuntime.InvokeAsync<string>("window.__TAURI__.path.appConfigDir");
// Store the directories in the settings manager:
SettingsManager.ConfigDirectory = configDir;
SettingsManager.DataDirectory = dataDir;