UI: MyFort: Hide "Service Logs" when it is same as "Logs"

This commit is contained in:
Nodir Temirkhodjaev 2024-11-07 12:59:33 +05:00
parent d0e3eaa7d2
commit 977ca338f7

View File

@ -215,7 +215,8 @@ QLayout *HomeWindow::setupDialogButtons()
m_btHelp = createFlatToolButton(
":/icons/help.png", "https://github.com/tnodir/fort/wiki/User-Guide");
m_btServiceLogs->setVisible(settings()->hasService());
m_btServiceLogs->setVisible(
settings()->hasService() && settings()->profileLogsPath() != settings()->logsPath());
connect(m_btProfile, &QAbstractButton::clicked, ctrl(), &BaseController::onLinkClicked);
connect(m_btLogs, &QAbstractButton::clicked, ctrl(), &BaseController::onLinkClicked);