Compare commits

...
Author SHA1 Message Date
spark a8a887e82f Remember a dropped folder from the window event, so the contact sheet can open it.
ci / rust (pull_request) Successful in 11m30s
ci / typescript (pull_request) Successful in 15m21s
desktop-release / build (--target universal-apple-darwin, dmg,app, darwin-universal, macos) (push) Successful in 23m40s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Successful in 41m54s
The main window delivers the drop as a window event. Recording it only on the webview event left the folder unknown, and opening it was refused.
2026-10-23 17:36:34 +01:00
spark 3a2828e4ca Merge pull request 'Contact sheet, remove from event, and local filmstrip thumbs' (#119) from task/contact-sheet-remove into main
ci / rust (push) Successful in 9m15s
ci / typescript (push) Successful in 13m39s
desktop-release / build (--target universal-apple-darwin, dmg,app, darwin-universal, macos) (push) Successful in 24m54s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Successful in 29m41s
Closes #118
2026-10-23 16:57:59 +01:00
4 changed files with 11 additions and 3 deletions

No files matched your search

+1 -1
View File
@@ -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 -1
View File
@@ -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."
+8
View File
@@ -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 -1
View File
@@ -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",