mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
refactor all modals and popouts so they retain animations on exit
This commit is contained in:
14
Common/ModalManager.qml
Normal file
14
Common/ModalManager.qml
Normal file
@@ -0,0 +1,14 @@
|
||||
import QtQuick
|
||||
pragma Singleton
|
||||
|
||||
QtObject {
|
||||
id: modalManager
|
||||
|
||||
signal closeAllModalsExcept(var excludedModal)
|
||||
|
||||
function openModal(modal) {
|
||||
if (!modal.allowStacking) {
|
||||
closeAllModalsExcept(modal)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user