feat: space
This commit is contained in:
@@ -16,6 +16,7 @@ tokio = { version = "1", features = ["full"] }
|
||||
serde_json = "1.0"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
tauri = { version = "2.0.0-beta", features = [
|
||||
"unstable",
|
||||
"tray-icon",
|
||||
"macos-private-api",
|
||||
"native-tls-vendored",
|
||||
|
||||
@@ -294,7 +294,7 @@ pub async fn set_nwc(uri: &str, state: State<'_, Nostr>) -> Result<bool, String>
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn load_nwc(state: State<'_, Nostr>) -> Result<bool, bool> {
|
||||
pub async fn load_nwc(state: State<'_, Nostr>) -> Result<bool, String> {
|
||||
let client = &state.client;
|
||||
let keyring = Entry::new("Lume Secret Storage", "NWC").unwrap();
|
||||
|
||||
@@ -305,10 +305,10 @@ pub async fn load_nwc(state: State<'_, Nostr>) -> Result<bool, bool> {
|
||||
client.set_zapper(nwc).await;
|
||||
Ok(true)
|
||||
} else {
|
||||
Err(false)
|
||||
Err("Cannot connect to NWC".into())
|
||||
}
|
||||
}
|
||||
Err(_) => Err(false),
|
||||
Err(_) => Ok(false),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,11 +6,10 @@
|
||||
"title": "Lume",
|
||||
"label": "main",
|
||||
"titleBarStyle": "Overlay",
|
||||
"width": 1080,
|
||||
"width": 500,
|
||||
"height": 800,
|
||||
"minWidth": 1080,
|
||||
"minHeight": 800,
|
||||
"center": true
|
||||
"minWidth": 500,
|
||||
"minHeight": 800
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -6,13 +6,16 @@
|
||||
"title": "Lume",
|
||||
"label": "main",
|
||||
"titleBarStyle": "Overlay",
|
||||
"width": 1080,
|
||||
"width": 500,
|
||||
"height": 800,
|
||||
"minWidth": 1080,
|
||||
"minWidth": 500,
|
||||
"minHeight": 800,
|
||||
"center": true,
|
||||
"hiddenTitle": true,
|
||||
"decorations": true
|
||||
"decorations": true,
|
||||
"transparent": true,
|
||||
"windowEffects": {
|
||||
"effects": ["windowBackground"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -5,11 +5,10 @@
|
||||
{
|
||||
"title": "Lume",
|
||||
"label": "main",
|
||||
"width": 1080,
|
||||
"width": 500,
|
||||
"height": 800,
|
||||
"minWidth": 1080,
|
||||
"minHeight": 800,
|
||||
"center": true
|
||||
"minWidth": 500,
|
||||
"minHeight": 800
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user