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 caps the first-packet size gate at the confirmed size and relaxes the hash query, total timeout and cache eviction so even very large files transfer and open. When preview is disabled the explicit Open shows a message instead of doing nothing. Double-click preview behavior is unchanged. Localize the new menu item and dialogs in en_US/zh_TW/de_DE. Co-Authored-By: Qoder
This commit was merged in pull request #11.
This commit is contained in:
1 parent
ee20326bbf
commit
4bc51d2498
8 files changed
+113
-18
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user