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);
|
||||
m_trayIcon->setContextMenu(trayMenu);
|
||||
|
||||
setIcon();
|
||||
setTrayIcon();
|
||||
m_trayIcon->show();
|
||||
}
|
||||
|
||||
|
|
@ -742,7 +742,7 @@ void MainWindow::applyConfig()
|
|||
if (!Settings::value(Settings::Client::RemoteHost).isNull())
|
||||
ui->lineHostname->setText(Settings::value(Settings::Client::RemoteHost).toString());
|
||||
updateLocalFingerprint();
|
||||
setIcon();
|
||||
setTrayIcon();
|
||||
|
||||
const auto coreMode = Settings::value(Settings::Core::CoreMode).value<Settings::CoreMode>();
|
||||
|
||||
|
|
@ -763,7 +763,7 @@ void MainWindow::saveSettings() const
|
|||
Settings::save();
|
||||
}
|
||||
|
||||
void MainWindow::setIcon()
|
||||
void MainWindow::setTrayIcon()
|
||||
{
|
||||
// Using a theme icon that is packed in exe renders an invisible icon
|
||||
// Instead use the resource path of the packed icon
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ private:
|
|||
void createMenuBar();
|
||||
void setupTrayIcon();
|
||||
void applyConfig();
|
||||
void setIcon();
|
||||
void setTrayIcon();
|
||||
void setStatus(const QString &status);
|
||||
void updateFromLogLine(const QString &line);
|
||||
void checkConnected(const QString &line);
|
||||
|
|
|
|||
Loading…
Reference in a new issue