From 977ca338f7b097699224543bc4a5a882ef1558d6 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Thu, 7 Nov 2024 12:59:33 +0500 Subject: [PATCH] UI: MyFort: Hide "Service Logs" when it is same as "Logs" --- src/ui/form/home/homewindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/form/home/homewindow.cpp b/src/ui/form/home/homewindow.cpp index 19346e98..ddd91d86 100644 --- a/src/ui/form/home/homewindow.cpp +++ b/src/ui/form/home/homewindow.cpp @@ -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);