Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8a887e82f |
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@photoreport/desktop",
|
||||
"version": "0.3.22",
|
||||
"version": "0.3.23",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "photoreport-desktop"
|
||||
version = "0.3.22"
|
||||
version = "0.3.23"
|
||||
edition = "2024"
|
||||
publish = false
|
||||
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()?;
|
||||
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| {
|
||||
use tauri::Manager;
|
||||
if let tauri::WebviewEvent::DragDrop(tauri::DragDropEvent::Drop { paths, .. }) = event {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "PhotoReport",
|
||||
"version": "0.3.22",
|
||||
"version": "0.3.23",
|
||||
"identifier": "pt.photoreport.desktop",
|
||||
"build": {
|
||||
"devUrl": "http://localhost:5173",
|
||||
|
||||
Reference in new issue
Block a user