From d2929ad701d84bfac4d2a0b5298b5941930227e1 Mon Sep 17 00:00:00 2001 From: zhuzichu Date: Thu, 20 Apr 2023 19:15:38 +0800 Subject: [PATCH] update --- example/page/MainPage.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/page/MainPage.qml b/example/page/MainPage.qml index 48a8870..c0c4f42 100644 --- a/example/page/MainPage.qml +++ b/example/page/MainPage.qml @@ -24,6 +24,7 @@ FluWindow { } SystemTrayIcon { + id:system_tray visible: true icon.source: "qrc:/res/image/favicon.ico" tooltip: "FluentUI" @@ -53,7 +54,7 @@ FluWindow { negativeText:"最小化" buttonFlags: FluContentDialog.NeutralButton | FluContentDialog.NegativeButton | FluContentDialog.PositiveButton onNegativeClicked:{ - showSuccess("最小化成功") + system_tray.showMessage("友情提示","FluentUI已隐藏至托盘,点击托盘可再次激活窗口"); window.hide() } positiveText:"退出"