refactor: rename MainWindow::setIcon -> MainWindow::setTrayIcon to better reflect what the method does
This commit is contained in:
parent
88e385d050
commit
697cd57adb
2 changed files with 4 additions and 4 deletions
|
|
@ -733,7 +733,7 @@ void MainWindow::setupTrayIcon()
|
||||||
trayMenu->insertSeparator(m_actionTrayQuit);
|
trayMenu->insertSeparator(m_actionTrayQuit);
|
||||||
m_trayIcon->setContextMenu(trayMenu);
|
m_trayIcon->setContextMenu(trayMenu);
|
||||||
|
|
||||||
setIcon();
|
setTrayIcon();
|
||||||
m_trayIcon->show();
|
m_trayIcon->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -742,7 +742,7 @@ void MainWindow::applyConfig()
|
||||||
if (!Settings::value(Settings::Client::RemoteHost).isNull())
|
if (!Settings::value(Settings::Client::RemoteHost).isNull())
|
||||||
ui->lineHostname->setText(Settings::value(Settings::Client::RemoteHost).toString());
|
ui->lineHostname->setText(Settings::value(Settings::Client::RemoteHost).toString());
|
||||||
updateLocalFingerprint();
|
updateLocalFingerprint();
|
||||||
setIcon();
|
setTrayIcon();
|
||||||
|
|
||||||
const auto coreMode = Settings::value(Settings::Core::CoreMode).value<Settings::CoreMode>();
|
const auto coreMode = Settings::value(Settings::Core::CoreMode).value<Settings::CoreMode>();
|
||||||
|
|
||||||
|
|
@ -763,7 +763,7 @@ void MainWindow::saveSettings() const
|
||||||
Settings::save();
|
Settings::save();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::setIcon()
|
void MainWindow::setTrayIcon()
|
||||||
{
|
{
|
||||||
// Using a theme icon that is packed in exe renders an invisible icon
|
// Using a theme icon that is packed in exe renders an invisible icon
|
||||||
// Instead use the resource path of the packed icon
|
// Instead use the resource path of the packed icon
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ private:
|
||||||
void createMenuBar();
|
void createMenuBar();
|
||||||
void setupTrayIcon();
|
void setupTrayIcon();
|
||||||
void applyConfig();
|
void applyConfig();
|
||||||
void setIcon();
|
void setTrayIcon();
|
||||||
void setStatus(const QString &status);
|
void setStatus(const QString &status);
|
||||||
void updateFromLogLine(const QString &line);
|
void updateFromLogLine(const QString &line);
|
||||||
void checkConnected(const QString &line);
|
void checkConnected(const QString &line);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue