change: auto load when start or connect.
This commit is contained in:
@@ -167,6 +167,7 @@ void Connecter::InitControl()
|
||||
ui->elbClient->setText(name);
|
||||
ui->elbClient->setStyleSheet("color: green;");
|
||||
remoteCall_(name);
|
||||
emit sigConfirmUse();
|
||||
});
|
||||
|
||||
setMaximumWidth(300);
|
||||
|
||||
@@ -34,6 +34,7 @@ signals:
|
||||
void sendConnect(ConnectState cs);
|
||||
void sigDoConnect(const QString& ip, quint16 port);
|
||||
void sigDisConnect();
|
||||
void sigConfirmUse();
|
||||
|
||||
private:
|
||||
void InitControl();
|
||||
|
||||
@@ -42,6 +42,11 @@ void FileManager::SetModeStr(const QString& modeStr, int type, ClientCore* clien
|
||||
|
||||
connect(fileHelper_.get(), &DirFileHelper::sigHome, this, &FileManager::ShowPath);
|
||||
connect(fileHelper_.get(), &DirFileHelper::sigDirFile, this, &FileManager::ShowFile);
|
||||
|
||||
if (type == 0) {
|
||||
evtHome();
|
||||
evtFile();
|
||||
}
|
||||
}
|
||||
|
||||
void FileManager::InitControl()
|
||||
|
||||
@@ -37,7 +37,7 @@ private:
|
||||
void doubleClick(int row, int column);
|
||||
void SetRoot(const QString& path);
|
||||
|
||||
private:
|
||||
public slots:
|
||||
void evtHome();
|
||||
void evtFile();
|
||||
void evtUp();
|
||||
|
||||
Reference in New Issue
Block a user