/// <summary>
        /// Filters task list when the current open file changes
        /// </summary>
        internal void RefilterTaskListOnFileChange()
        {
            if (SelectedToken == null)
            {
                return;
            }

            // Check to see if the file has changed. If it has, update the variable and call method to refilter
            if (!openFile.Equals(TaskViewModel.GetCurrentFile()))
            {
                openFile = TaskViewModel.GetCurrentFile();
                TaskViewModel.CreateFilteredTaskCollection(SelectedToken, SelectedScopeIndex);
            }
        }