Feature: add a remote Open command with large-file confirmation

Add an Open item atop the remote file list context menu: a single file is
pulled back and previewed through the existing flow, a single folder
navigates into its subdirectory, and multi-selection disables it. Files
over the 8 MiB preview limit ask for confirmation; once confirmed the
explicit-open path relaxes the size gate, hash query, total timeout and
cache eviction so even very large files transfer and open. Double-click
preview behavior is unchanged. Localize the new menu item and dialog in
en_US/zh_TW/de_DE.

Co-Authored-By: Qoder
This commit is contained in:
yuanyuanxiangandQoder committed 2026-12-05 17:48:17 +01:00
1 parent ee20326bbf
commit bdf85a82cd
8 files changed
+94 -18

No files matched your search

+3 -2
View File
@@ -143,9 +143,9 @@ public:
// E2E 测试钩子:WM_APP+0x123,wParam=行号,lParam!=0 表示远程列表。
afx_msg LRESULT OnPreviewTest(WPARAM wParam, LPARAM lParam);
#endif
void BeginRemotePreview(const CString& fullPath);
void BeginRemotePreview(const CString& fullPath, bool allowLarge = false);
void ContinueRemotePreview(const CString& fullPath, uint64_t size, uint64_t mtimeMs,
const std::string& sha256);
const std::string& sha256, bool allowLarge = false);
void OpenLocalPath(const CString& path);
bool GetRemoteFileMeta(const CString& fullPath, RemoteMeta& meta);
std::string GetPreviewClientKey(uint64_t clientID);
@@ -270,6 +270,7 @@ protected:
afx_msg void OnLocalOpen();
afx_msg void OnRemoteOpenShow();
afx_msg void OnRemoteOpenHide();
afx_msg void OnRemoteOpenPreview();
afx_msg void OnRclickListLocal(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnRclickListRemote(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnLocalDesktop();