Implement displaying launch warnings. Fixes #12

This commit is contained in:
Cameron Gutman
2018-08-04 16:05:37 -07:00
parent 1e8c2b179a
commit ca72cbb135
3 changed files with 35 additions and 11 deletions
+7 -1
View File
@@ -47,7 +47,13 @@ Item {
function displayLaunchWarning(text)
{
// TODO: toast
// This toast appears for 3 seconds, just shorter than how long
// Session will wait for it to be displayed. This gives it time
// to transition to invisible before continuing.
var toast = Qt.createQmlObject('import QtQuick.Controls 2.3; ToolTip {}', parent, '')
toast.text = text
toast.timeout = 3000
toast.visible = true
}
onVisibleChanged: {