Skip to content

Commit

Permalink
Allow project loading (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
atjn authored Dec 4, 2023
1 parent 846bd8e commit 92f35d1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "Ecdar-GUI-Web"]
path = Ecdar-GUI-Web
url = git@github.com:ECDAR-AAU-SW-P5/Ecdar-GUI-Web.git
url = https://github.com/ECDAR-AAU-SW-P5/Ecdar-GUI-Web.git
2 changes: 1 addition & 1 deletion Ecdar-GUI-Web
3 changes: 2 additions & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ tauri-build = { version = "1.4.0", features = [ ] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.4.0", features = [ "dialog-confirm", "dialog-open", "fs-create-dir", "fs-write-file", "fs-read-dir", "fs-exists", "fs-read-file"] }
tauri = { version = "1.4.0", features = [ "dialog-confirm", "dialog-save", "dialog-open", "fs-read-dir", "fs-create-dir", "fs-remove-dir", "fs-read-file", "fs-write-file", "fs-remove-file", "path-all" ] }
tauri-plugin-persisted-scope = "0.1.3"
tonic = "0.10.2"
rand = "0.8.5"
tokio = "1.33.0"
Expand Down
1 change: 1 addition & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ecdar_gui_macros::create_functions!();

fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_persisted_scope::init())
.setup(|app| {
#[cfg(debug_assertions)]
{
Expand Down
13 changes: 8 additions & 5 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,26 @@
},
"tauri": {
"allowlist": {
"dialog": {
"dialog": {
"ask": false,
"confirm": true,
"message": false,
"open": true,
"save": false
"save": true
},
"fs": {
"readFile": true,
"writeFile": true,
"readDir": true,
"copyFile": false,
"createDir": true,
"removeDir": false,
"removeFile": false,
"removeDir": true,
"removeFile": true,
"renameFile": false,
"exists": true
"exists": false
},
"path": {
"all": true
}
},
"bundle": {
Expand Down

0 comments on commit 92f35d1

Please sign in to comment.