fix: inabliity to resize when first opening if log open on startup
This commit is contained in:
parent
63846292ff
commit
6f66fe767f
1 changed files with 5 additions and 4 deletions
|
|
@ -132,10 +132,6 @@ MainWindow::MainWindow(ConfigScopes &configScopes, AppConfig &appConfig)
|
||||||
ui->lblConnectionSecurityStatus->setVisible(false);
|
ui->lblConnectionSecurityStatus->setVisible(false);
|
||||||
|
|
||||||
ui->btnToggleLog->setStyleSheet(QStringLiteral("background:rgba(0,0,0,0);"));
|
ui->btnToggleLog->setStyleSheet(QStringLiteral("background:rgba(0,0,0,0);"));
|
||||||
if (m_appConfig.logExpanded())
|
|
||||||
ui->btnToggleLog->click();
|
|
||||||
|
|
||||||
toggleLogVisible(m_appConfig.logExpanded());
|
|
||||||
|
|
||||||
// Setup the Instance Checking
|
// Setup the Instance Checking
|
||||||
// In case of a previous crash remove first
|
// In case of a previous crash remove first
|
||||||
|
|
@ -637,6 +633,11 @@ void MainWindow::setupTrayIcon()
|
||||||
|
|
||||||
void MainWindow::applyConfig()
|
void MainWindow::applyConfig()
|
||||||
{
|
{
|
||||||
|
if (m_appConfig.logExpanded())
|
||||||
|
ui->btnToggleLog->click();
|
||||||
|
|
||||||
|
toggleLogVisible(m_appConfig.logExpanded());
|
||||||
|
|
||||||
enableServer(m_appConfig.serverGroupChecked());
|
enableServer(m_appConfig.serverGroupChecked());
|
||||||
enableClient(m_appConfig.clientGroupChecked());
|
enableClient(m_appConfig.clientGroupChecked());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue