Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8a887e82f | ||
|
|
3a2828e4ca |
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@photoreport/desktop",
|
"name": "@photoreport/desktop",
|
||||||
"version": "0.3.22",
|
"version": "0.3.23",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "photoreport-desktop"
|
name = "photoreport-desktop"
|
||||||
version = "0.3.22"
|
version = "0.3.23"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
publish = false
|
publish = false
|
||||||
description = "PhotoReport desktop: the web app in a native shell, with keychain sign-in and (later) local FTP and the native engine."
|
description = "PhotoReport desktop: the web app in a native shell, with keychain sign-in and (later) local FTP and the native engine."
|
||||||
|
|||||||
@@ -111,6 +111,14 @@ pub fn run() {
|
|||||||
.build()?;
|
.build()?;
|
||||||
Ok(())
|
Ok(())
|
||||||
})
|
})
|
||||||
|
// The main window is the window's own webview, so a drop arrives as a window event. Noting it only on
|
||||||
|
// the webview event left the folder unrecorded, and opening it was refused.
|
||||||
|
.on_window_event(|window, event| {
|
||||||
|
use tauri::Manager;
|
||||||
|
if let tauri::WindowEvent::DragDrop(tauri::DragDropEvent::Drop { paths, .. }) = event {
|
||||||
|
window.state::<browse::OpenFolders>().note(paths);
|
||||||
|
}
|
||||||
|
})
|
||||||
.on_webview_event(|webview, event| {
|
.on_webview_event(|webview, event| {
|
||||||
use tauri::Manager;
|
use tauri::Manager;
|
||||||
if let tauri::WebviewEvent::DragDrop(tauri::DragDropEvent::Drop { paths, .. }) = event {
|
if let tauri::WebviewEvent::DragDrop(tauri::DragDropEvent::Drop { paths, .. }) = event {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "PhotoReport",
|
"productName": "PhotoReport",
|
||||||
"version": "0.3.22",
|
"version": "0.3.23",
|
||||||
"identifier": "pt.photoreport.desktop",
|
"identifier": "pt.photoreport.desktop",
|
||||||
"build": {
|
"build": {
|
||||||
"devUrl": "http://localhost:5173",
|
"devUrl": "http://localhost:5173",
|
||||||
|
|||||||
Reference in new issue
Block a user