Skip to content

Commit

Permalink
Use Utils.createWindow for CreateVisualisationDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Jun 20, 2024
1 parent 1241d0a commit 94f8190
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions source/app/ui/qml/Graphia/Visualisations.qml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ Item
property color disabledTextColor
property color heldColor

CreateVisualisationDialog
Component
{
id: createVisualisationDialog

document: root.document
CreateVisualisationDialog { document: root.document }
}

GradientSelector { id: _gradientSelector }
Expand Down Expand Up @@ -81,11 +80,7 @@ Item
textColor: enabled ? enabledTextColor : disabledTextColor
hoverColor: heldColor

onClicked: function(mouse)
{
createVisualisationDialog.show();
createVisualisationDialog.raise();
}
onClicked: function(mouse) { Utils.createWindow(root, createVisualisationDialog); }
}

FloatingButton
Expand Down

0 comments on commit 94f8190

Please sign in to comment.