Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.
fix(desktop): File Explorer says access denied, not network unavailable, when the phone refuses (#88)
Beec379e851a1f3
diff --git a/desktop/app/i18n/nectarlink_de.ts b/desktop/app/i18n/nectarlink_de.tsindex 50aa7fc..c50ed4d 100644--- a/desktop/app/i18n/nectarlink_de.ts+++ b/desktop/app/i18n/nectarlink_de.ts@@ -8286,149 +8286,167 @@ Voraussetzungen</message></context><context>- <name>Timeline</name>+ <name>Storage</name><message><location filename="rust_strings.h" line="442"/>+ <source>%1's files aren't shared with this PC</source>+ <translation>Die Dateien von %1 werden nicht mit diesem PC geteilt</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="443"/>+ <source>On the phone, allow All files access for NectarLink.</source>+ <translation>Erlaube NectarLink auf dem Telefon „Zugriff auf alle Dateien“.</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="444"/>+ <source>On the phone, turn on Browse this phone's storage in File Explorer in NectarLink.</source>+ <translation>Schalte auf dem Telefon in NectarLink „Speicher dieses Geräts im Datei-Explorer durchsuchen“ ein.</translation>+ </message>+</context>+<context>+ <name>Timeline</name>+ <message>+ <location filename="rust_strings.h" line="445"/><source>App window #%1</source><translation>App-Fenster #%1</translation></message><message>- <location filename="rust_strings.h" line="443"/>+ <location filename="rust_strings.h" line="446"/><source>Clip (removed from clipboard history)</source><translation>Eintrag (aus dem Zwischenablageverlauf entfernt)</translation></message><message>- <location filename="rust_strings.h" line="444"/>+ <location filename="rust_strings.h" line="447"/><source>Copied image</source><translation>Kopiertes Bild</translation></message><message>- <location filename="rust_strings.h" line="445"/>+ <location filename="rust_strings.h" line="448"/><source>Copied link to clipboard.</source><translation>Link in die Zwischenablage kopiert.</translation></message><message>- <location filename="rust_strings.h" line="446"/>+ <location filename="rust_strings.h" line="449"/><source>Copied to clipboard.</source><translation>In die Zwischenablage kopiert.</translation></message><message>- <location filename="rust_strings.h" line="447"/>+ <location filename="rust_strings.h" line="450"/><source>From %1</source><translation>Von %1</translation></message><message>- <location filename="rust_strings.h" line="448"/>+ <location filename="rust_strings.h" line="451"/><source>In progress</source><translation>In Bearbeitung</translation></message><message>- <location filename="rust_strings.h" line="449"/>+ <location filename="rust_strings.h" line="452"/><source>No phone is paired yet.</source><translation>Noch kein Gerät gekoppelt.</translation></message><message>- <location filename="rust_strings.h" line="450"/>+ <location filename="rust_strings.h" line="453"/><source>Opened from %1</source><translation>Von %1 geöffnet</translation></message><message>- <location filename="rust_strings.h" line="451"/>+ <location filename="rust_strings.h" line="454"/><source>Opened on %1</source><translation>Auf %1 geöffnet</translation></message><message>- <location filename="rust_strings.h" line="452"/>+ <location filename="rust_strings.h" line="455"/><source>Phone microphone</source><translation>Gerätemikrofon</translation></message><message>- <location filename="rust_strings.h" line="453"/>+ <location filename="rust_strings.h" line="456"/><source>Phone webcam</source><translation>Geräte-Webcam</translation></message><message>- <location filename="rust_strings.h" line="454"/>+ <location filename="rust_strings.h" line="457"/><source>Recorded on %1</source><translation>Auf %1 aufgenommen</translation></message><message>- <location filename="rust_strings.h" line="455"/>+ <location filename="rust_strings.h" line="458"/><source>Saved from %1</source><translation>Von %1 gespeichert</translation></message><message>- <location filename="rust_strings.h" line="456"/>+ <location filename="rust_strings.h" line="459"/><source>Screen mirroring</source><translation>Bildschirmspiegelung</translation></message><message>- <location filename="rust_strings.h" line="457"/>+ <location filename="rust_strings.h" line="460"/><source>Sending to %1…</source><translation>Wird an %1 gesendet…</translation></message><message>- <location filename="rust_strings.h" line="458"/>+ <location filename="rust_strings.h" line="461"/><source>Sent clip to %1.</source><translation>Zwischenablage an %1 gesendet.</translation></message><message>- <location filename="rust_strings.h" line="459"/>+ <location filename="rust_strings.h" line="462"/><source>Sent to %1</source><translation>An %1 gesendet</translation></message><message>- <location filename="rust_strings.h" line="460"/>+ <location filename="rust_strings.h" line="463"/><source>Session</source><translation>Sitzung</translation></message><message>- <location filename="rust_strings.h" line="461"/>+ <location filename="rust_strings.h" line="464"/><source>That clip is no longer in clipboard history.</source><translation>Dieser Eintrag befindet sich nicht mehr im Zwischenablageverlauf.</translation></message><message>- <location filename="rust_strings.h" line="462"/>+ <location filename="rust_strings.h" line="465"/><source>That entry couldn't be removed. Try again.</source><translation>Dieser Eintrag konnte nicht entfernt werden. Versuche es erneut.</translation></message><message>- <location filename="rust_strings.h" line="463"/>+ <location filename="rust_strings.h" line="466"/><source>That file was moved or deleted.</source><translation>Diese Datei wurde verschoben oder gelöscht.</translation></message><message>- <location filename="rust_strings.h" line="464"/>+ <location filename="rust_strings.h" line="467"/><source>That isn't a web link.</source><translation>Das ist kein Weblink.</translation></message><message>- <location filename="rust_strings.h" line="465"/>+ <location filename="rust_strings.h" line="468"/><source>That photo was moved or deleted.</source><translation>Dieses Foto wurde verschoben oder gelöscht.</translation></message><message>- <location filename="rust_strings.h" line="466"/>+ <location filename="rust_strings.h" line="469"/><source>The Timeline couldn't be cleared. Try again.</source><translation>Der Zeitverlauf konnte nicht geleert werden. Versuche es erneut.</translation></message><message>- <location filename="rust_strings.h" line="467"/>+ <location filename="rust_strings.h" line="470"/><source>The photo couldn't be copied to the clipboard.</source><translation>Das Foto konnte nicht in die Zwischenablage kopiert werden.</translation></message><message>- <location filename="rust_strings.h" line="468"/>+ <location filename="rust_strings.h" line="471"/><source>Voice recording</source><translation>Sprachaufnahme</translation></message><message>- <location filename="rust_strings.h" line="469"/>+ <location filename="rust_strings.h" line="472"/><source>With %1</source><translation>Mit %1</translation></message><message>- <location filename="rust_strings.h" line="470"/>+ <location filename="rust_strings.h" line="473"/><source>device</source><translation>Gerät</translation></message>@@ -8745,37 +8763,37 @@ Voraussetzungen<context><name>Transfers</name><message>- <location filename="rust_strings.h" line="471"/>+ <location filename="rust_strings.h" line="474"/><source>Accept in NectarLink to save to Downloads\Nectarlink</source><translation>In NectarLink annehmen, um unter Downloads\Nectarlink zu speichern</translation></message><message>- <location filename="rust_strings.h" line="472"/>+ <location filename="rust_strings.h" line="475"/><source>Files are turned off for that device.</source><translation>Dateien sind für dieses Gerät deaktiviert.</translation></message><message>- <location filename="rust_strings.h" line="473"/>+ <location filename="rust_strings.h" line="476"/><source>From %1, opened from Downloads\Nectarlink</source><translation>Von %1, geöffnet aus Downloads\Nectarlink</translation></message><message>- <location filename="rust_strings.h" line="474"/>+ <location filename="rust_strings.h" line="477"/><source>From %1, saved in Downloads\Nectarlink</source><translation>Von %1, gespeichert unter Downloads\Nectarlink</translation></message><message>- <location filename="rust_strings.h" line="475"/>+ <location filename="rust_strings.h" line="478"/><source>Nearby device</source><translation>Gerät in der Nähe</translation></message><message>- <location filename="rust_strings.h" line="476"/>+ <location filename="rust_strings.h" line="479"/><source>That's too many files to send at once.</source><translation>Das sind zu viele Dateien auf einmal.</translation></message><message>- <location filename="rust_strings.h" line="477"/>+ <location filename="rust_strings.h" line="480"/><source>There's nothing to send in there.</source><translation>Dort gibt es nichts zu senden.</translation></message>@@ -8783,72 +8801,72 @@ Voraussetzungen<context><name>Updater</name><message>- <location filename="rust_strings.h" line="478"/>+ <location filename="rust_strings.h" line="481"/><source>Couldn't check for updates. Check your internet connection.</source><translation>Suche nach Updates fehlgeschlagen. Prüfe deine Internetverbindung.</translation></message><message>- <location filename="rust_strings.h" line="479"/>+ <location filename="rust_strings.h" line="482"/><source>NectarLink %1 is available</source><translation>NectarLink %1 ist verfügbar</translation></message><message>- <location filename="rust_strings.h" line="480"/>+ <location filename="rust_strings.h" line="483"/><source>NectarLink %1 is available.</source><translation>NectarLink %1 ist verfügbar.</translation></message><message>- <location filename="rust_strings.h" line="481"/>+ <location filename="rust_strings.h" line="484"/><source>NectarLink is still on the version you had. Try again from Settings.</source><translation>NectarLink befindet sich noch auf der bisherigen Version. Versuche es über die Einstellungen erneut.</translation></message><message>- <location filename="rust_strings.h" line="482"/>+ <location filename="rust_strings.h" line="485"/><source>NectarLink is up to date.</source><translation>NectarLink ist auf dem neuesten Stand.</translation></message><message>- <location filename="rust_strings.h" line="483"/>+ <location filename="rust_strings.h" line="486"/><source>NectarLink is updated to %1</source><translation>NectarLink wurde auf %1 aktualisiert</translation></message><message>- <location filename="rust_strings.h" line="484"/>+ <location filename="rust_strings.h" line="487"/><source>The download was damaged, so it wasn't installed. Try again.</source><translation>Der Download war beschädigt und wurde daher nicht installiert. Versuche es erneut.</translation></message><message>- <location filename="rust_strings.h" line="485"/>+ <location filename="rust_strings.h" line="488"/><source>The update couldn't be downloaded. Check your internet connection and try again.</source><translation>Das Update konnte nicht heruntergeladen werden. Prüfe deine Internetverbindung und versuche es erneut.</translation></message><message>- <location filename="rust_strings.h" line="486"/>+ <location filename="rust_strings.h" line="489"/><source>The update couldn't be saved. Check that there's free space and try again.</source><translation>Das Update konnte nicht gespeichert werden. Prüfe, ob genügend freier Speicherplatz vorhanden ist, und versuche es erneut.</translation></message><message>- <location filename="rust_strings.h" line="487"/>+ <location filename="rust_strings.h" line="490"/><source>The update couldn't be started. Try again.</source><translation>Das Update konnte nicht gestartet werden. Versuche es erneut.</translation></message><message>- <location filename="rust_strings.h" line="488"/>+ <location filename="rust_strings.h" line="491"/><source>The update didn't install</source><translation>Das Update wurde nicht installiert</translation></message><message>- <location filename="rust_strings.h" line="489"/>+ <location filename="rust_strings.h" line="492"/><source>The update is installed. Restart NectarLink to use it.</source><translation>Das Update ist installiert. Starte NectarLink neu, um es zu verwenden.</translation></message><message>- <location filename="rust_strings.h" line="490"/>+ <location filename="rust_strings.h" line="493"/><source>Update now, or later from Settings.</source><translation>Jetzt oder später über die Einstellungen aktualisieren.</translation></message><message>- <location filename="rust_strings.h" line="491"/>+ <location filename="rust_strings.h" line="494"/><source>Your phone reconnects on its own.</source><translation>Dein Gerät verbindet sich automatisch wieder.</translation></message>@@ -9059,12 +9077,12 @@ Voraussetzungen<context><name>Webcam</name><message>- <location filename="rust_strings.h" line="492"/>+ <location filename="rust_strings.h" line="495"/><source>Starting camera on %1…</source><translation>Kamera auf %1 wird gestartet…</translation></message><message>- <location filename="rust_strings.h" line="493"/>+ <location filename="rust_strings.h" line="496"/><source>Streaming %1 × %2 · %3 fps from %4</source><translation>Streamt %1 × %2 · %3 FPS von %4</translation></message>@@ -9095,17 +9113,17 @@ Voraussetzungen<context><name>Widget</name><message>- <location filename="rust_strings.h" line="494"/>+ <location filename="rust_strings.h" line="497"/><source>No phone connected</source><translation>Kein Gerät verbunden</translation></message><message>- <location filename="rust_strings.h" line="495"/>+ <location filename="rust_strings.h" line="498"/><source>No recent clipboard items</source><translation>Keine aktuellen Einträge in der Zwischenablage</translation></message><message>- <location filename="rust_strings.h" line="496"/>+ <location filename="rust_strings.h" line="499"/><source>Not available</source><translation>Nicht verfügbar</translation></message>diff --git a/desktop/app/i18n/nectarlink_zh_CN.ts b/desktop/app/i18n/nectarlink_zh_CN.tsindex f1aa04c..8ced70c 100644--- a/desktop/app/i18n/nectarlink_zh_CN.ts+++ b/desktop/app/i18n/nectarlink_zh_CN.ts@@ -8282,149 +8282,167 @@ What it needs</message></context><context>- <name>Timeline</name>+ <name>Storage</name><message><location filename="rust_strings.h" line="442"/>+ <source>%1's files aren't shared with this PC</source>+ <translation>%1 的文件未与此电脑共享</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="443"/>+ <source>On the phone, allow All files access for NectarLink.</source>+ <translation>请在手机上为 NectarLink 开启“所有文件访问权限”。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="444"/>+ <source>On the phone, turn on Browse this phone's storage in File Explorer in NectarLink.</source>+ <translation>请在手机的 NectarLink 中打开“在文件资源管理器中浏览此手机的存储”。</translation>+ </message>+</context>+<context>+ <name>Timeline</name>+ <message>+ <location filename="rust_strings.h" line="445"/><source>App window #%1</source><translation>应用窗口 #%1</translation></message><message>- <location filename="rust_strings.h" line="443"/>+ <location filename="rust_strings.h" line="446"/><source>Clip (removed from clipboard history)</source><translation>剪贴内容(已从剪贴板历史中删除)</translation></message><message>- <location filename="rust_strings.h" line="444"/>+ <location filename="rust_strings.h" line="447"/><source>Copied image</source><translation>已复制的图片</translation></message><message>- <location filename="rust_strings.h" line="445"/>+ <location filename="rust_strings.h" line="448"/><source>Copied link to clipboard.</source><translation>已将链接复制到剪贴板。</translation></message><message>- <location filename="rust_strings.h" line="446"/>+ <location filename="rust_strings.h" line="449"/><source>Copied to clipboard.</source><translation>已复制到剪贴板。</translation></message><message>- <location filename="rust_strings.h" line="447"/>+ <location filename="rust_strings.h" line="450"/><source>From %1</source><translation>来自 %1</translation></message><message>- <location filename="rust_strings.h" line="448"/>+ <location filename="rust_strings.h" line="451"/><source>In progress</source><translation>进行中</translation></message><message>- <location filename="rust_strings.h" line="449"/>+ <location filename="rust_strings.h" line="452"/><source>No phone is paired yet.</source><translation>尚未配对手机。</translation></message><message>- <location filename="rust_strings.h" line="450"/>+ <location filename="rust_strings.h" line="453"/><source>Opened from %1</source><translation>从 %1 打开</translation></message><message>- <location filename="rust_strings.h" line="451"/>+ <location filename="rust_strings.h" line="454"/><source>Opened on %1</source><translation>在 %1 上打开</translation></message><message>- <location filename="rust_strings.h" line="452"/>+ <location filename="rust_strings.h" line="455"/><source>Phone microphone</source><translation>手机麦克风</translation></message><message>- <location filename="rust_strings.h" line="453"/>+ <location filename="rust_strings.h" line="456"/><source>Phone webcam</source><translation>手机摄像头</translation></message><message>- <location filename="rust_strings.h" line="454"/>+ <location filename="rust_strings.h" line="457"/><source>Recorded on %1</source><translation>在 %1 上录制</translation></message><message>- <location filename="rust_strings.h" line="455"/>+ <location filename="rust_strings.h" line="458"/><source>Saved from %1</source><translation>从 %1 保存</translation></message><message>- <location filename="rust_strings.h" line="456"/>+ <location filename="rust_strings.h" line="459"/><source>Screen mirroring</source><translation>屏幕镜像</translation></message><message>- <location filename="rust_strings.h" line="457"/>+ <location filename="rust_strings.h" line="460"/><source>Sending to %1…</source><translation>正在发送到 %1…</translation></message><message>- <location filename="rust_strings.h" line="458"/>+ <location filename="rust_strings.h" line="461"/><source>Sent clip to %1.</source><translation>已将剪贴内容发送到 %1。</translation></message><message>- <location filename="rust_strings.h" line="459"/>+ <location filename="rust_strings.h" line="462"/><source>Sent to %1</source><translation>已发送到 %1</translation></message><message>- <location filename="rust_strings.h" line="460"/>+ <location filename="rust_strings.h" line="463"/><source>Session</source><translation>会话</translation></message><message>- <location filename="rust_strings.h" line="461"/>+ <location filename="rust_strings.h" line="464"/><source>That clip is no longer in clipboard history.</source><translation>该剪贴内容已不在剪贴板历史中。</translation></message><message>- <location filename="rust_strings.h" line="462"/>+ <location filename="rust_strings.h" line="465"/><source>That entry couldn't be removed. Try again.</source><translation>无法删除该条目,请重试。</translation></message><message>- <location filename="rust_strings.h" line="463"/>+ <location filename="rust_strings.h" line="466"/><source>That file was moved or deleted.</source><translation>该文件已被移动或删除。</translation></message><message>- <location filename="rust_strings.h" line="464"/>+ <location filename="rust_strings.h" line="467"/><source>That isn't a web link.</source><translation>这不是网页链接。</translation></message><message>- <location filename="rust_strings.h" line="465"/>+ <location filename="rust_strings.h" line="468"/><source>That photo was moved or deleted.</source><translation>该照片已被移动或删除。</translation></message><message>- <location filename="rust_strings.h" line="466"/>+ <location filename="rust_strings.h" line="469"/><source>The Timeline couldn't be cleared. Try again.</source><translation>无法清除时间线,请重试。</translation></message><message>- <location filename="rust_strings.h" line="467"/>+ <location filename="rust_strings.h" line="470"/><source>The photo couldn't be copied to the clipboard.</source><translation>无法将照片复制到剪贴板。</translation></message><message>- <location filename="rust_strings.h" line="468"/>+ <location filename="rust_strings.h" line="471"/><source>Voice recording</source><translation>录音</translation></message><message>- <location filename="rust_strings.h" line="469"/>+ <location filename="rust_strings.h" line="472"/><source>With %1</source><translation>与 %1</translation></message><message>- <location filename="rust_strings.h" line="470"/>+ <location filename="rust_strings.h" line="473"/><source>device</source><translation>设备</translation></message>@@ -8741,37 +8759,37 @@ What it needs<context><name>Transfers</name><message>- <location filename="rust_strings.h" line="471"/>+ <location filename="rust_strings.h" line="474"/><source>Accept in NectarLink to save to Downloads\Nectarlink</source><translation>在 NectarLink 中接受即可保存到 Downloads\Nectarlink</translation></message><message>- <location filename="rust_strings.h" line="472"/>+ <location filename="rust_strings.h" line="475"/><source>Files are turned off for that device.</source><translation>已为该设备关闭文件。</translation></message><message>- <location filename="rust_strings.h" line="473"/>+ <location filename="rust_strings.h" line="476"/><source>From %1, opened from Downloads\Nectarlink</source><translation>来自 %1,已从 Downloads\Nectarlink 打开</translation></message><message>- <location filename="rust_strings.h" line="474"/>+ <location filename="rust_strings.h" line="477"/><source>From %1, saved in Downloads\Nectarlink</source><translation>来自 %1,已保存到 Downloads\Nectarlink</translation></message><message>- <location filename="rust_strings.h" line="475"/>+ <location filename="rust_strings.h" line="478"/><source>Nearby device</source><translation>附近的设备</translation></message><message>- <location filename="rust_strings.h" line="476"/>+ <location filename="rust_strings.h" line="479"/><source>That's too many files to send at once.</source><translation>文件太多,无法一次发送。</translation></message><message>- <location filename="rust_strings.h" line="477"/>+ <location filename="rust_strings.h" line="480"/><source>There's nothing to send in there.</source><translation>那里没有可发送的内容。</translation></message>@@ -8779,72 +8797,72 @@ What it needs<context><name>Updater</name><message>- <location filename="rust_strings.h" line="478"/>+ <location filename="rust_strings.h" line="481"/><source>Couldn't check for updates. Check your internet connection.</source><translation>无法检查更新。请检查网络连接。</translation></message><message>- <location filename="rust_strings.h" line="479"/>+ <location filename="rust_strings.h" line="482"/><source>NectarLink %1 is available</source><translation>NectarLink %1 已发布</translation></message><message>- <location filename="rust_strings.h" line="480"/>+ <location filename="rust_strings.h" line="483"/><source>NectarLink %1 is available.</source><translation>NectarLink %1 已发布。</translation></message><message>- <location filename="rust_strings.h" line="481"/>+ <location filename="rust_strings.h" line="484"/><source>NectarLink is still on the version you had. Try again from Settings.</source><translation>NectarLink 仍是原来的版本。请在设置中重试。</translation></message><message>- <location filename="rust_strings.h" line="482"/>+ <location filename="rust_strings.h" line="485"/><source>NectarLink is up to date.</source><translation>NectarLink 已是最新版本。</translation></message><message>- <location filename="rust_strings.h" line="483"/>+ <location filename="rust_strings.h" line="486"/><source>NectarLink is updated to %1</source><translation>NectarLink 已更新到 %1</translation></message><message>- <location filename="rust_strings.h" line="484"/>+ <location filename="rust_strings.h" line="487"/><source>The download was damaged, so it wasn't installed. Try again.</source><translation>下载的文件已损坏,因此未安装。请重试。</translation></message><message>- <location filename="rust_strings.h" line="485"/>+ <location filename="rust_strings.h" line="488"/><source>The update couldn't be downloaded. Check your internet connection and try again.</source><translation>无法下载更新。请检查网络连接后重试。</translation></message><message>- <location filename="rust_strings.h" line="486"/>+ <location filename="rust_strings.h" line="489"/><source>The update couldn't be saved. Check that there's free space and try again.</source><translation>无法保存更新。请确认有足够的空间后重试。</translation></message><message>- <location filename="rust_strings.h" line="487"/>+ <location filename="rust_strings.h" line="490"/><source>The update couldn't be started. Try again.</source><translation>无法启动更新。请重试。</translation></message><message>- <location filename="rust_strings.h" line="488"/>+ <location filename="rust_strings.h" line="491"/><source>The update didn't install</source><translation>更新未安装</translation></message><message>- <location filename="rust_strings.h" line="489"/>+ <location filename="rust_strings.h" line="492"/><source>The update is installed. Restart NectarLink to use it.</source><translation>更新已安装。请重新启动 NectarLink 以使用新版本。</translation></message><message>- <location filename="rust_strings.h" line="490"/>+ <location filename="rust_strings.h" line="493"/><source>Update now, or later from Settings.</source><translation>立即更新,或稍后在设置中更新。</translation></message><message>- <location filename="rust_strings.h" line="491"/>+ <location filename="rust_strings.h" line="494"/><source>Your phone reconnects on its own.</source><translation>手机会自动重新连接。</translation></message>@@ -9055,12 +9073,12 @@ What it needs<context><name>Webcam</name><message>- <location filename="rust_strings.h" line="492"/>+ <location filename="rust_strings.h" line="495"/><source>Starting camera on %1…</source><translation>正在启动 %1 上的相机…</translation></message><message>- <location filename="rust_strings.h" line="493"/>+ <location filename="rust_strings.h" line="496"/><source>Streaming %1 × %2 · %3 fps from %4</source><translation>正在从 %4 传输 %1 × %2 · %3 fps</translation></message>@@ -9091,17 +9109,17 @@ What it needs<context><name>Widget</name><message>- <location filename="rust_strings.h" line="494"/>+ <location filename="rust_strings.h" line="497"/><source>No phone connected</source><translation>未连接手机</translation></message><message>- <location filename="rust_strings.h" line="495"/>+ <location filename="rust_strings.h" line="498"/><source>No recent clipboard items</source><translation>没有最近的剪贴板内容</translation></message><message>- <location filename="rust_strings.h" line="496"/>+ <location filename="rust_strings.h" line="499"/><source>Not available</source><translation>不可用</translation></message>diff --git a/desktop/app/i18n/rust_strings.h b/desktop/app/i18n/rust_strings.hindex 8984d4c..81bb248 100644--- a/desktop/app/i18n/rust_strings.h+++ b/desktop/app/i18n/rust_strings.h@@ -439,6 +439,9 @@ static const char *const nectarlink_rust_strings[] = {QT_TRANSLATE_NOOP("Setup", "Setup stopped with code %1."), // desktop/app/src/setup.rsQT_TRANSLATE_NOOP("Setup", "The uninstaller is missing. Reinstall NectarLink, then uninstall it."), // desktop/app/src/setup.rsQT_TRANSLATE_NOOP("Setup", "Uninstall stopped with code %1."), // desktop/app/src/setup.rs+ QT_TRANSLATE_NOOP("Storage", "%1's files aren't shared with this PC"), // desktop/app/src/storage.rs+ QT_TRANSLATE_NOOP("Storage", "On the phone, allow All files access for NectarLink."), // desktop/app/src/storage.rs+ QT_TRANSLATE_NOOP("Storage", "On the phone, turn on Browse this phone's storage in File Explorer in NectarLink."), // desktop/app/src/storage.rsQT_TRANSLATE_NOOP("Timeline", "App window #%1"), // desktop/app/src/i18n.rsQT_TRANSLATE_NOOP("Timeline", "Clip (removed from clipboard history)"), // desktop/app/src/bridge/timeline.rsQT_TRANSLATE_NOOP("Timeline", "Copied image"), // desktop/app/src/bridge/timeline.rsdiff --git a/desktop/app/i18n/template/nectarlink.ts b/desktop/app/i18n/template/nectarlink.tsindex 6631d3c..893adf6 100644--- a/desktop/app/i18n/template/nectarlink.ts+++ b/desktop/app/i18n/template/nectarlink.ts@@ -8013,149 +8013,167 @@ What it needs</message></context><context>- <name>Timeline</name>+ <name>Storage</name><message><location filename="../rust_strings.h" line="442"/>- <source>App window #%1</source>+ <source>%1's files aren't shared with this PC</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="443"/>- <source>Clip (removed from clipboard history)</source>+ <source>On the phone, allow All files access for NectarLink.</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="444"/>- <source>Copied image</source>+ <source>On the phone, turn on Browse this phone's storage in File Explorer in NectarLink.</source><translation type="unfinished"></translation></message>+</context>+<context>+ <name>Timeline</name><message><location filename="../rust_strings.h" line="445"/>- <source>Copied link to clipboard.</source>+ <source>App window #%1</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="446"/>- <source>Copied to clipboard.</source>+ <source>Clip (removed from clipboard history)</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="447"/>- <source>From %1</source>+ <source>Copied image</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="448"/>- <source>In progress</source>+ <source>Copied link to clipboard.</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="449"/>- <source>No phone is paired yet.</source>+ <source>Copied to clipboard.</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="450"/>- <source>Opened from %1</source>+ <source>From %1</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="451"/>- <source>Opened on %1</source>+ <source>In progress</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="452"/>- <source>Phone microphone</source>+ <source>No phone is paired yet.</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="453"/>- <source>Phone webcam</source>+ <source>Opened from %1</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="454"/>- <source>Recorded on %1</source>+ <source>Opened on %1</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="455"/>- <source>Saved from %1</source>+ <source>Phone microphone</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="456"/>- <source>Screen mirroring</source>+ <source>Phone webcam</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="457"/>- <source>Sending to %1…</source>+ <source>Recorded on %1</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="458"/>- <source>Sent clip to %1.</source>+ <source>Saved from %1</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="459"/>- <source>Sent to %1</source>+ <source>Screen mirroring</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="460"/>- <source>Session</source>+ <source>Sending to %1…</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="461"/>- <source>That clip is no longer in clipboard history.</source>+ <source>Sent clip to %1.</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="462"/>- <source>That entry couldn't be removed. Try again.</source>+ <source>Sent to %1</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="463"/>- <source>That file was moved or deleted.</source>+ <source>Session</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="464"/>- <source>That isn't a web link.</source>+ <source>That clip is no longer in clipboard history.</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="465"/>- <source>That photo was moved or deleted.</source>+ <source>That entry couldn't be removed. Try again.</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="466"/>- <source>The Timeline couldn't be cleared. Try again.</source>+ <source>That file was moved or deleted.</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="467"/>- <source>The photo couldn't be copied to the clipboard.</source>+ <source>That isn't a web link.</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="468"/>- <source>Voice recording</source>+ <source>That photo was moved or deleted.</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="469"/>- <source>With %1</source>+ <source>The Timeline couldn't be cleared. Try again.</source><translation type="unfinished"></translation></message><message><location filename="../rust_strings.h" line="470"/>+ <source>The photo couldn't be copied to the clipboard.</source>+ <translation type="unfinished"></translation>+ </message>+ <message>+ <location filename="../rust_strings.h" line="471"/>+ <source>Voice recording</source>+ <translation type="unfinished"></translation>+ </message>+ <message>+ <location filename="../rust_strings.h" line="472"/>+ <source>With %1</source>+ <translation type="unfinished"></translation>+ </message>+ <message>+ <location filename="../rust_strings.h" line="473"/><source>device</source><translation type="unfinished"></translation></message>@@ -8472,37 +8490,37 @@ What it needs<context><name>Transfers</name><message>- <location filename="../rust_strings.h" line="471"/>+ <location filename="../rust_strings.h" line="474"/><source>Accept in NectarLink to save to Downloads\Nectarlink</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="472"/>+ <location filename="../rust_strings.h" line="475"/><source>Files are turned off for that device.</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="473"/>+ <location filename="../rust_strings.h" line="476"/><source>From %1, opened from Downloads\Nectarlink</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="474"/>+ <location filename="../rust_strings.h" line="477"/><source>From %1, saved in Downloads\Nectarlink</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="475"/>+ <location filename="../rust_strings.h" line="478"/><source>Nearby device</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="476"/>+ <location filename="../rust_strings.h" line="479"/><source>That's too many files to send at once.</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="477"/>+ <location filename="../rust_strings.h" line="480"/><source>There's nothing to send in there.</source><translation type="unfinished"></translation></message>@@ -8510,72 +8528,72 @@ What it needs<context><name>Updater</name><message>- <location filename="../rust_strings.h" line="478"/>+ <location filename="../rust_strings.h" line="481"/><source>Couldn't check for updates. Check your internet connection.</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="479"/>+ <location filename="../rust_strings.h" line="482"/><source>NectarLink %1 is available</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="480"/>+ <location filename="../rust_strings.h" line="483"/><source>NectarLink %1 is available.</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="481"/>+ <location filename="../rust_strings.h" line="484"/><source>NectarLink is still on the version you had. Try again from Settings.</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="482"/>+ <location filename="../rust_strings.h" line="485"/><source>NectarLink is up to date.</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="483"/>+ <location filename="../rust_strings.h" line="486"/><source>NectarLink is updated to %1</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="484"/>+ <location filename="../rust_strings.h" line="487"/><source>The download was damaged, so it wasn't installed. Try again.</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="485"/>+ <location filename="../rust_strings.h" line="488"/><source>The update couldn't be downloaded. Check your internet connection and try again.</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="486"/>+ <location filename="../rust_strings.h" line="489"/><source>The update couldn't be saved. Check that there's free space and try again.</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="487"/>+ <location filename="../rust_strings.h" line="490"/><source>The update couldn't be started. Try again.</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="488"/>+ <location filename="../rust_strings.h" line="491"/><source>The update didn't install</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="489"/>+ <location filename="../rust_strings.h" line="492"/><source>The update is installed. Restart NectarLink to use it.</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="490"/>+ <location filename="../rust_strings.h" line="493"/><source>Update now, or later from Settings.</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="491"/>+ <location filename="../rust_strings.h" line="494"/><source>Your phone reconnects on its own.</source><translation type="unfinished"></translation></message>@@ -8786,12 +8804,12 @@ What it needs<context><name>Webcam</name><message>- <location filename="../rust_strings.h" line="492"/>+ <location filename="../rust_strings.h" line="495"/><source>Starting camera on %1…</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="493"/>+ <location filename="../rust_strings.h" line="496"/><source>Streaming %1 × %2 · %3 fps from %4</source><translation type="unfinished"></translation></message>@@ -8822,17 +8840,17 @@ What it needs<context><name>Widget</name><message>- <location filename="../rust_strings.h" line="494"/>+ <location filename="../rust_strings.h" line="497"/><source>No phone connected</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="495"/>+ <location filename="../rust_strings.h" line="498"/><source>No recent clipboard items</source><translation type="unfinished"></translation></message><message>- <location filename="../rust_strings.h" line="496"/>+ <location filename="../rust_strings.h" line="499"/><source>Not available</source><translation type="unfinished"></translation></message>diff --git a/desktop/app/src/storage.rs b/desktop/app/src/storage.rsindex 1736c32..4d7e44a 100644--- a/desktop/app/src/storage.rs+++ b/desktop/app/src/storage.rs@@ -77,6 +77,8 @@ mod imp {core::{HSTRING, PCWSTR},};+ #[cfg(windows)]+ use crate::i18n::tr;#[cfg(windows)]use crate::state::{Changes, CoreStatus};use crate::{core_host, win};@@ -672,7 +674,12 @@ mod imp {core_host::spawn(async move {let Some(node) = core_host::node() else {- ack_placeholders_failed(connection_key, transfer_key, request_key);+ ack_placeholders_failed(+ connection_key,+ transfer_key,+ request_key,+ STATUS_CLOUD_NETWORK_UNAVAILABLE,+ );return;};match node.storage_list(root.device, &rel_path).await {@@ -686,7 +693,8 @@ mod imp {error = %e,"fetch placeholders failed");- ack_placeholders_failed(connection_key, transfer_key, request_key);+ let status = failure_status(root.device, &e);+ ack_placeholders_failed(connection_key, transfer_key, request_key, status);}}});@@ -741,8 +749,66 @@ mod imp {let _ = unsafe { CfExecute(&op_info, &mut op_params) };}+ /// What Explorer is told when the phone couldn't list or read something.+ /// A refusal (storage access off, or no All files access) isn't a network+ /// problem: it's "access denied", and NectarLink says what to turn on.+ #[cfg(windows)]+ fn failure_status(device: DeviceId, error: &nectarlink_core::Error) -> NTSTATUS {+ match error {+ nectarlink_core::Error::Denied | nectarlink_core::Error::Unsupported => {+ explain_refusal(device, matches!(error, nectarlink_core::Error::Unsupported));+ STATUS_ACCESS_DENIED+ }+ _ => STATUS_CLOUD_NETWORK_UNAVAILABLE,+ }+ }++ /// Says on this PC why the phone's folder won't open, at most every ten+ /// minutes per phone (Explorer asks again for every folder it shows).+ #[cfg(windows)]+ fn explain_refusal(device: DeviceId, no_all_files_access: bool) {+ static SHOWN: Mutex<Option<std::collections::HashMap<DeviceId, std::time::Instant>>> =+ Mutex::new(None);+ {+ let mut shown = lock(&SHOWN);+ let shown = shown.get_or_insert_with(Default::default);+ if shown.get(&device).is_some_and(|at| at.elapsed() < std::time::Duration::from_secs(600)) {+ return;+ }+ shown.insert(device, std::time::Instant::now());+ }+ let name = core_host::host().hub.read(|s| s.name_of(&device)).unwrap_or_else(|| "your phone".into());+ let body = if no_all_files_access {+ tr!("Storage", "On the phone, allow All files access for NectarLink.")+ } else {+ tr!(+ "Storage",+ "On the phone, turn on Browse this phone's storage in File Explorer in NectarLink."+ )+ };+ crate::win::toast::show(crate::win::toast::Toast {+ device: crate::transfers::TOAST_GROUP.into(),+ key: format!("storage-refused-{device}"),+ title: tr!("Storage", "%1's files aren't shared with this PC", name),+ body,+ attribution: "NectarLink".into(),+ icon: None,+ image: None,+ actions: Vec::new(),+ reply: None,+ silent: false,+ progress: None,+ call: false,+ });+ }+#[cfg(windows)]- fn ack_placeholders_failed(connection_key: CF_CONNECTION_KEY, transfer_key: i64, request_key: i64) {+ fn ack_placeholders_failed(+ connection_key: CF_CONNECTION_KEY,+ transfer_key: i64,+ request_key: i64,+ status: NTSTATUS,+ ) {let op_info =make_op_info(connection_key, transfer_key, request_key, CF_OPERATION_TYPE_TRANSFER_PLACEHOLDERS);let mut op_params = CF_OPERATION_PARAMETERS {@@ -750,7 +816,7 @@ mod imp {Anonymous: CF_OPERATION_PARAMETERS_0 {TransferPlaceholders: windows::Win32::Storage::CloudFilters::CF_OPERATION_PARAMETERS_0_4 {Flags: windows::Win32::Storage::CloudFilters::CF_OPERATION_TRANSFER_PLACEHOLDERS_FLAGS(0),- CompletionStatus: STATUS_CLOUD_NETWORK_UNAVAILABLE,+ CompletionStatus: status,PlaceholderTotalCount: 0,PlaceholderArray: std::ptr::null_mut(),PlaceholderCount: 0,@@ -838,7 +904,7 @@ mod imp {transfer_key,request_key,required_offset as i64,- STATUS_CLOUD_NETWORK_UNAVAILABLE,+ failure_status(root.device, &e),);return;}