aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-20 21:10:34 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-20 21:10:34 +0200
commitcc82d961fc0d4d80e0f44857fe2b462c5108fa9a (patch)
treedcc4bad5d2995946861074f2416dedb777a4ee86 /src-tauri/src
parent6553d959f0a0504a1f13c116f11bfe0116d8ff63 (diff)
downloadFlightCore-cc82d961fc0d4d80e0f44857fe2b462c5108fa9a.tar.gz
FlightCore-cc82d961fc0d4d80e0f44857fe2b462c5108fa9a.zip
Make button to select NS RC persistent
Uses a tauri plugin for persistent store behind the scenes to persist values over restarts of the application.
Diffstat (limited to 'src-tauri/src')
-rw-r--r--src-tauri/src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index c6c51e2b..492c5935 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -16,6 +16,7 @@ use app::{
};
use tauri::{Manager, State};
use tokio::time::sleep;
+use tauri_plugin_store::PluginBuilder;
#[derive(Default)]
struct Counter(Arc<Mutex<i32>>);
@@ -32,6 +33,7 @@ fn main() {
));
tauri::Builder::default()
+ .plugin(PluginBuilder::default().build())
.setup(|app| {
let app_handle = app.app_handle();
tauri::async_runtime::spawn(async move {