fix: log expanded on start up and windows no resizeable
This commit is contained in:
parent
05ed47be2e
commit
6a08305338
1 changed files with 11 additions and 8 deletions
|
|
@ -132,8 +132,6 @@ MainWindow::MainWindow(ConfigScopes &configScopes, AppConfig &appConfig)
|
||||||
ui->btnToggleLog->setFixedHeight(ui->lblLog->height() * 0.6);
|
ui->btnToggleLog->setFixedHeight(ui->lblLog->height() * 0.6);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ui->btnToggleLog->setStyleSheet(QStringLiteral("background:rgba(0,0,0,0);"));
|
|
||||||
|
|
||||||
// Setup the Instance Checking
|
// Setup the Instance Checking
|
||||||
// In case of a previous crash remove first
|
// In case of a previous crash remove first
|
||||||
m_guiDupeChecker->removeServer(m_guiSocketName);
|
m_guiDupeChecker->removeServer(m_guiSocketName);
|
||||||
|
|
@ -223,6 +221,16 @@ void MainWindow::setupControls()
|
||||||
m_appConfig.setLastVersion(kVersion);
|
m_appConfig.setLastVersion(kVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Setup the log toggle, set its initial state to closed
|
||||||
|
ui->btnToggleLog->setStyleSheet(QStringLiteral("background:rgba(0,0,0,0);"));
|
||||||
|
if (m_appConfig.logExpanded()) {
|
||||||
|
ui->btnToggleLog->setArrowType(Qt::DownArrow);
|
||||||
|
ui->textLog->setVisible(true);
|
||||||
|
ui->btnToggleLog->click();
|
||||||
|
} else {
|
||||||
|
ui->textLog->setVisible(false);
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(Q_OS_MAC)
|
#if defined(Q_OS_MAC)
|
||||||
|
|
||||||
ui->rbModeServer->setAttribute(Qt::WA_MacShowFocusRect, 0);
|
ui->rbModeServer->setAttribute(Qt::WA_MacShowFocusRect, 0);
|
||||||
|
|
@ -491,7 +499,7 @@ void MainWindow::resetCore()
|
||||||
|
|
||||||
void MainWindow::updateSize()
|
void MainWindow::updateSize()
|
||||||
{
|
{
|
||||||
if (ui->textLog->isVisible()) {
|
if (m_appConfig.logExpanded()) {
|
||||||
setMaximumHeight(16777215);
|
setMaximumHeight(16777215);
|
||||||
setMaximumWidth(16777215);
|
setMaximumWidth(16777215);
|
||||||
resize(m_expandedSize);
|
resize(m_expandedSize);
|
||||||
|
|
@ -657,11 +665,6 @@ 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