This commit is contained in:
zhuzichu 2023-10-17 10:34:37 +08:00
parent 0030c44a6c
commit 3a775a8bb2
4 changed files with 6 additions and 15 deletions

View File

@ -15,7 +15,6 @@ FluWindow {
title: "FluentUI" title: "FluentUI"
width: 1000 width: 1000
height: 640 height: 640
closeDestory:false
minimumWidth: 520 minimumWidth: 520
minimumHeight: 200 minimumHeight: 200
launchMode: FluWindowType.SingleTask launchMode: FluWindowType.SingleTask
@ -26,11 +25,6 @@ FluWindow {
id:viewmodel_settings id:viewmodel_settings
} }
closeListener:function(event){
dialog_close.open()
event.accepted = false
}
FluEvent{ FluEvent{
id:event_checkupdate id:event_checkupdate
name: "checkUpdate" name: "checkUpdate"
@ -39,7 +33,6 @@ FluWindow {
} }
} }
Component.onCompleted: { Component.onCompleted: {
FluTools.setQuitOnLastWindowClosed(false)
tour.open() tour.open()
checkUpdate(true) checkUpdate(true)
FluEventBus.registerEvent(event_checkupdate) FluEventBus.registerEvent(event_checkupdate)
@ -122,6 +115,7 @@ FluWindow {
showDark: true showDark: true
z:7 z:7
darkClickListener:(button)=>handleDarkChanged(button) darkClickListener:(button)=>handleDarkChanged(button)
closeClickListener: ()=>{dialog_close.open()}
} }
Row{ Row{
z:8 z:8
@ -170,6 +164,7 @@ FluWindow {
} }
darkText: Lang.dark_mode darkText: Lang.dark_mode
showDark: true showDark: true
closeClickListener: ()=>{dialog_close.open()}
darkClickListener:(button)=>handleDarkChanged(button) darkClickListener:(button)=>handleDarkChanged(button)
z:7 z:7
} }

View File

@ -18,7 +18,6 @@ FluWindow {
title: "FluentUI" title: "FluentUI"
width: 1000 width: 1000
height: 640 height: 640
closeDestory:false
minimumWidth: 520 minimumWidth: 520
minimumHeight: 200 minimumHeight: 200
launchMode: FluWindowType.SingleTask launchMode: FluWindowType.SingleTask
@ -28,11 +27,6 @@ FluWindow {
id:viewmodel_settings id:viewmodel_settings
} }
closeListener:function(event){
dialog_close.open()
event.accepted = false
}
FluEvent{ FluEvent{
id:event_checkupdate id:event_checkupdate
name: "checkUpdate" name: "checkUpdate"
@ -42,7 +36,6 @@ FluWindow {
} }
Component.onCompleted: { Component.onCompleted: {
FluTools.setQuitOnLastWindowClosed(false)
tour.open() tour.open()
checkUpdate(true) checkUpdate(true)
FluEventBus.registerEvent(event_checkupdate) FluEventBus.registerEvent(event_checkupdate)
@ -125,6 +118,7 @@ FluWindow {
showDark: true showDark: true
z:7 z:7
darkClickListener:(button)=>handleDarkChanged(button) darkClickListener:(button)=>handleDarkChanged(button)
closeClickListener: ()=>{dialog_close.open()}
} }
Row{ Row{
z:8 z:8
@ -174,6 +168,7 @@ FluWindow {
darkText: Lang.dark_mode darkText: Lang.dark_mode
showDark: true showDark: true
darkClickListener:(button)=>handleDarkChanged(button) darkClickListener:(button)=>handleDarkChanged(button)
closeClickListener: ()=>{dialog_close.open()}
z:7 z:7
} }
FluNavigationView{ FluNavigationView{

View File

@ -1,5 +1,6 @@
import QtQuick import QtQuick
import QtQuick.Controls import QtQuick.Controls
import QtQuick.Controls.Basic
import FluentUI import FluentUI
ProgressBar{ ProgressBar{

View File

@ -1,6 +1,6 @@
import QtQuick import QtQuick
import QtQuick.Controls import QtQuick.Controls
import QtQuick.Shapes import QtQuick.Controls.Basic
import FluentUI import FluentUI
ProgressBar{ ProgressBar{