Skip to content

Conversation

@caybro
Copy link
Member

@caybro caybro commented Nov 28, 2025

What does the PR do

  • hide the window instead of minimizing (except when on macOS or mobile)
  • hide the advanced "Minimize to tray icon on close" option, making the copy explicitly mention the "tray icon"
  • fix some runtime warnings

Fixes #19364

Affected areas

AppMain/Settings

Architecture compliance

Screencapture of the functionality

image

Impact on end user

Consistent close window behavior

How to test

  • close the window using the [x] window deco button
  • quit the app using "Ctrl+Q" kbd shortcut

Risk

  • mid (needs testing and some e2e tests)

@caybro caybro requested review from a team, alexjba, micieslak and noeliaSD as code owners November 28, 2025 14:51
@caybro caybro removed the request for review from a team November 28, 2025 14:51
@caybro caybro linked an issue Nov 28, 2025 that may be closed by this pull request
@caybro caybro requested review from friofry and jrainville November 28, 2025 14:51
Qt.application.version = aboutModule.getCurrentVersion()
return Qt.application.displayName
}
visible: false
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't set the visible property, conflicts with visibility:

 // WRN 2025-11-26 <snip> file=qrc:/main.qml:26 text="QML QQuickWindowQmlImpl*: Conflicting properties 'visible' and 'visibility'"

geometry = Qt.rect(0,
0,
Math.min(Screen.desktopAvailableWidth - 125, 1400),
Math.min(Screen.desktopAvailableHeight - 125, 840));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed hardcoded window size

@status-im-auto
Copy link
Member

status-im-auto commented Nov 28, 2025

Jenkins Builds

Click to see older builds (38)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ f0b1ad5 #1 2025-11-28 15:00:57 ~8 min tests/nim 📄log
✔️ f0b1ad5 #1 2025-11-28 15:05:34 ~13 min tests/ui 📄log
✔️ d524df23 #1 2025-11-28 15:03:19 ~11 min android/arm64 🤖apk 📲
✔️ b4ce19b #2 2025-11-28 15:17:19 ~8 min tests/nim 📄log
✔️ b4ce19b #2 2025-11-28 15:23:24 ~14 min tests/ui 📄log
✔️ b4ce19b #2 2025-11-28 15:26:19 ~17 min linux/x86_64 📦tgz
✔️ b4ce19b #2 2025-11-28 15:31:37 ~22 min linux/x86_64-nwaku 📦tgz
✔️ b4ce19b #2 2025-11-28 15:35:24 ~26 min macos/aarch64 🍎dmg
✔️ b4ce19b #2 2025-11-28 15:36:22 ~27 min windows/x86_64 💿exe
✔️ b4ce19b #2 2025-11-28 15:38:28 ~29 min macos/aarch64-nwaku 🍎dmg
✔️ b4ce19b #2 2025-11-28 15:39:32 ~30 min ios/aarch64 📱ipa
✔️ b4ce19b pr19435 2025-11-28 15:47:43 ~21 min tests/e2e 📊rpt
✖️ b4ce19b PR19435 2025-11-28 16:02:03 ~25 min tests/e2e-windows 📊rpt
✔️ c93352af #2 2025-11-28 15:18:27 ~9 min android/arm64 🤖apk 📲
✔️ 74bbe0f1 #3 2025-11-28 17:26:44 ~11 min android/arm64 🤖apk 📲
✔️ a97e6fc1 #4 2025-11-29 17:27:59 ~12 min android/arm64 🤖apk 📲
✔️ c076236 #3 2025-12-01 10:36:27 ~8 min tests/nim 📄log
✔️ c076236 #5 2025-12-01 10:37:36 ~9 min android/arm64 🤖apk 📲
c076236 #3 2025-12-01 10:40:22 ~12 min tests/ui 📄log
✔️ c076236 #3 2025-12-01 10:45:19 ~17 min linux/x86_64 📦tgz
✔️ c076236 #3 2025-12-01 10:45:39 ~17 min macos/aarch64 🍎dmg
✔️ c076236 #3 2025-12-01 10:45:46 ~17 min ios/aarch64 📱ipa
✔️ c076236 #3 2025-12-01 10:49:47 ~21 min macos/aarch64-nwaku 🍎dmg
✖️ c076236 pr19435 2025-12-01 10:51:19 ~5 min tests/e2e 📊rpt
✔️ c076236 #3 2025-12-01 10:51:41 ~23 min linux/x86_64-nwaku 📦tgz
✔️ c076236 #3 2025-12-01 10:57:36 ~29 min windows/x86_64 💿exe
✖️ c076236 PR19435 2025-12-01 11:13:12 ~15 min tests/e2e-windows 📊rpt
✔️ 74671f9 #4 2025-12-01 15:52:09 ~7 min tests/nim 📄log
✔️ 74671f9 #6 2025-12-01 15:54:30 ~10 min android/arm64 🤖apk 📲
✔️ 74671f9 #4 2025-12-01 15:58:13 ~13 min tests/ui 📄log
✔️ 74671f9 #4 2025-12-01 16:01:43 ~17 min linux/x86_64 📦tgz
✔️ 74671f9 #4 2025-12-01 16:01:55 ~17 min ios/aarch64 📱ipa
✔️ 74671f9 #4 2025-12-01 16:02:27 ~17 min macos/aarch64 🍎dmg
✔️ 74671f9 #4 2025-12-01 16:04:53 ~20 min macos/aarch64-nwaku 🍎dmg
✔️ 74671f9 #4 2025-12-01 16:07:16 ~22 min linux/x86_64-nwaku 📦tgz
✔️ 74671f9 #4 2025-12-01 16:12:48 ~28 min windows/x86_64 💿exe
✖️ 74671f9 pr19435 2025-12-01 16:17:06 ~15 min tests/e2e 📊rpt
✔️ 74671f9 PR19435 2025-12-01 16:34:52 ~21 min tests/e2e-windows 📊rpt
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 72788565 #7 2025-12-01 17:27:20 ~11 min android/arm64 🤖apk 📲
✔️ 35e6ef56 #8 2025-12-02 17:32:59 ~17 min android/arm64 🤖apk 📲

@caybro caybro force-pushed the 19364-app-doesnt-close-to-tray-when-x-is-pressed branch from f0b1ad5 to b4ce19b Compare November 28, 2025 15:08
@caybro caybro requested a review from a team as a code owner November 28, 2025 15:08
@caybro caybro requested review from anastasiyaig and removed request for a team and friofry November 28, 2025 15:22
Copy link
Member

@jrainville jrainville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We should test the different OSes before merging this time to make sure we didn't regress on another one again 😄


property bool isFleetSelectionEnabled
property bool isBrowserEnabled: true
property bool minimizeOnCloseOptionVisible
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe minimizeOnCloseOptionAvailable would be more accurate?

edit: I see that in AppMain you call it minimizeOnCloseOptionAvailable too, so IMo we could keep that name at all times 😄

@caybro caybro force-pushed the 19364-app-doesnt-close-to-tray-when-x-is-pressed branch from b4ce19b to c076236 Compare December 1, 2025 10:27
- hide the window instead of minimizing (except when on macOS or mobile)
- hide the advanced "Minimize to tray icon on close" option, making the
copy explicitly mention the "tray icon"
- fix some runtime warnings

Fixes #19364
@caybro caybro force-pushed the 19364-app-doesnt-close-to-tray-when-x-is-pressed branch from c076236 to 74671f9 Compare December 1, 2025 15:44
@glitchminer
Copy link
Contributor

glitchminer commented Dec 2, 2025

Hey @caybro, here's some results from Mac.

It seems like there is 1 bug. If the app window is closed with X then it cannot be restored from the dock icon, only the icon in the menu bar along the top.

Given that closing with the X in the window controls leaves the app in the dock it also seems like there is not a significant difference to minimising, which is a bit confusing.

With minimise to tray enabled:

App window controls

  • X while on welcome screen: Quits,
  • X while on wallet screen: Closes to dock (app is shown in dock and menu bar),

Status icon in menu bar

  • Left click (app minimised): Restores app and opens toolbar menu,
  • Left click (app open): Toolbar menu opens,
  • Left click, open app (app open): Nothing,
  • Left click, quit (app open): App quits,
  • Right click (app minimised): Toolbar menu opens,
  • Right click, open app (app minimised): Restores app,
  • Right click, open app (app open): Nothing,
  • Right click, quit (app minimised): App quits,

Dock controls

  • Left click on app (app minimised): Restores app,
  • Left click on app (app window closed with X): Nothing

@caybro
Copy link
Member Author

caybro commented Dec 2, 2025

Hey @caybro, here's some results from Mac.

It seems like there is 1 bug. If the app window is closed with X then it cannot be restored from the dock icon, only the icon in the menu bar along the top.

Given that closing with the X in the window controls leaves the app in the dock it also seems like there is not a significant difference to minimising, which is a bit confusing.

OK, I see that the process is quite different on mac, and indeed closing doesn't make much difference to minimizing the window. I'll restore the previous behavior on macOS that would minimize on close.

@caybro
Copy link
Member Author

caybro commented Dec 2, 2025

App window controls

  • X while on welcome screen: Quits,

That's expected, we always quit here because we don't have the user's setting for the "minimizeOnClose" (and no tray icon yet either)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App doesn't close to tray when X is pressed

4 participants