fix: fixed "Show/Hide" QAction text

This commit is contained in:
Qv2ray-dev 2020-04-23 13:32:47 +08:00
parent d24efb2e20
commit 3e832f70fd
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
5280
5281

View File

@ -322,9 +322,12 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
on_connectionListWidget_itemClicked(item, 0);
}
ReloadRecentConnectionList(GlobalConfig.uiConfig.recentConnections);
//
if (needShowWindow)
this->show();
//
tray_action_ShowHide->setText(needShowWindow ? tr("Hide") : tr("Show"));
//
if (StartupOption.enableToolbarPlguin)
{
LOG(MODULE_UI, "Plugin daemon is enabled.")