Ejemplo n.º 1
0
        public void SetMiniTimerVisible(bool visible, bool fromApi = false)
        {
            this.isMiniTimerVisible = visible;

            this.togglMiniTimerVisibilityMenuItem.IsChecked = visible;

            this.miniTimer.SetVisible(visible);

            if (!fromApi)
            {
                Toggl.SetMiniTimerVisible(visible);
            }
        }
Ejemplo n.º 2
0
        public void SetMiniTimerVisible(bool visible, bool fromApi = false)
        {
            this.IsMiniTimerVisible = visible;

            this.togglMiniTimerVisibilityMenuItem.IsChecked = visible;

            this.miniTimer.SetVisible(visible);

            if (visible)
            {
                // Make sure minitimer is not off screen
                Utils.CheckMinitimerVisibility(this.miniTimer);
            }

            if (!fromApi)
            {
                Toggl.SetMiniTimerVisible(visible);
            }
        }
Ejemplo n.º 3
0
        public void SetMiniTimerVisible(bool visible, bool fromApi = false)
        {
            this.IsMiniTimerVisible = visible;

            CogwheelMenuViewModel.IsMiniTimerUsed = visible;

            this.miniTimer.SetVisible(visible);

            if (visible)
            {
                // Make sure minitimer is not off screen
                Utils.CheckMinitimerVisibility(this.miniTimer);
            }

            if (!fromApi)
            {
                Toggl.SetMiniTimerVisible(visible);
            }
        }