diff --git a/Source/Editor/GUI/Popups/AutoSavePopup.cs b/Source/Editor/GUI/Popups/AutoSavePopup.cs index 28f9577d8..0992def3e 100644 --- a/Source/Editor/GUI/Popups/AutoSavePopup.cs +++ b/Source/Editor/GUI/Popups/AutoSavePopup.cs @@ -101,18 +101,6 @@ namespace FlaxEditor.GUI _timeRemaining = Mathf.CeilToInt(time); if (_timeLabel != null) _timeLabel.Text = "Auto Save in: " + _timeRemaining; - - // Move on text update if the progress bar is visible - removes this call from update - if (Editor.Instance.UI.ProgressVisible && !_isMoved) - { - _isMoved = true; - LocalX -= 250; - } - else if (!Editor.Instance.UI.ProgressVisible && _isMoved) - { - LocalX += 250; - _isMoved = false; - } } /// @@ -123,6 +111,18 @@ namespace FlaxEditor.GUI _saveNowButton.TextColor = _saveNowButton.IsMouseOver ? Style.Current.BackgroundHighlighted : _defaultTextColor; _cancelSaveButton.TextColor = _cancelSaveButton.IsMouseOver ? Style.Current.BackgroundHighlighted : _defaultTextColor; } + + // Move if the progress bar is visible + if (Editor.Instance.UI.ProgressVisible && !_isMoved) + { + _isMoved = true; + LocalX -= 280; + } + else if (!Editor.Instance.UI.ProgressVisible && _isMoved) + { + LocalX += 280; + _isMoved = false; + } base.Update(deltaTime); }