fix: Cached provider invalidation on reload not being done correctly

This commit is contained in:
WerWolv
2026-03-02 10:07:57 +01:00
parent 0cf27b9e9e
commit 04a8bd6798
3 changed files with 9 additions and 2 deletions

View File

@@ -12,6 +12,8 @@
namespace hex::plugin::remote {
prv::Provider::OpenResult SSHProvider::open() {
CachedProvider::open();
if (!m_sftpClient.isConnected()) {
try {
if (m_authMethod == AuthMethod::Password) {
@@ -47,7 +49,8 @@ namespace hex::plugin::remote {
m_remoteFile->close();
m_sftpClient.disconnect();
m_remoteFilePath.clear();
CachedProvider::close();
}
void SSHProvider::save() {