Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
win: don't show two tooltips
Browse files Browse the repository at this point in the history
Fixes: #325
  • Loading branch information
wangwenx190 committed Nov 20, 2023
1 parent 096d30b commit 2765d18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/quick/quickstandardtitlebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void QuickStandardTitleBar::setWindowIcon(const QVariant &value)

void QuickStandardTitleBar::updateMaximizeButton()
{
#if (!defined(Q_OS_MACOS) && FRAMELESSHELPER_CONFIG(system_button))
#if (FRAMELESSHELPER_CONFIG(system_button) && defined(Q_OS_LINUX))
const QQuickWindow * const w = window();
if (!w) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/standardtitlebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ bool StandardTitleBarPrivate::isInTitleBarIconArea(const QPoint &pos) const

void StandardTitleBarPrivate::updateMaximizeButton()
{
#if (!defined(Q_OS_MACOS) && FRAMELESSHELPER_CONFIG(system_button))
#if (FRAMELESSHELPER_CONFIG(system_button) && defined(Q_OS_LINUX))
const bool max = window->isMaximized();
maximizeButton->setButtonType(max ? SystemButtonType::Restore : SystemButtonType::Maximize);
maximizeButton->setToolTip(max ? tr("Restore") : tr("Maximize"));
Expand Down

0 comments on commit 2765d18

Please sign in to comment.