Feedback changes

This commit is contained in:
Rebecca Stankus 2019-10-24 10:24:18 -07:00
parent f8102be74d
commit 9a8fda2705
3 changed files with 10 additions and 12 deletions

View file

@ -68,13 +68,11 @@ Windows.Window {
Timer { Timer {
id: timer id: timer
} interval: 500;
repeat: false;
function delay(delayTimeMS, delayFunction) { onTriggered: {
timer.interval = delayTimeMS; updateContentParent();
timer.repeat = false; }
timer.triggered.connect(delayFunction);
timer.start();
} }
function updateInteractiveWindowPositionForMode() { function updateInteractiveWindowPositionForMode() {
@ -146,10 +144,10 @@ Windows.Window {
id: root; id: root;
width: interactiveWindowSize.width width: interactiveWindowSize.width
height: interactiveWindowSize.height height: interactiveWindowSize.height
// fix for missing content on OSX initial startup with a non-maximized interface window. It seems that in this case, we cannot update
// the content parent during creation of the Window root. This added delay will update the parent after the root has finished loading.
Component.onCompleted: { Component.onCompleted: {
delay(500, function() { timer.start();
updateContentParent();
});
} }
Rectangle { Rectangle {

View file

@ -798,4 +798,4 @@ function toggleEmojiApp() {
var emote = setup(); var emote = setup();
module.exports = emote; module.exports = emote;

View file

@ -1,4 +1,4 @@
// //
// SimplifiedEmoteIndicator.qml // SimplifiedEmoteIndicator.qml
// //
// Created by Milad Nazeri on 2019-08-05 // Created by Milad Nazeri on 2019-08-05