Exemplo n.º 1
0
        public void Search()
        {
            if (IsSearching)
            {
                SearchPending = true;
                CancelSearch();
                return;
            }

            SearchPending = false;
            if (Directory.Exists(SelectedDirectory))
            {
                TheSettings.WelcomeList.Clear();
                SaveFiles.Clear();

                SearchWorker.RunWorkerAsync();
                IsSearching = true;

                Log.Info($"Searching for GTA:LCS save files...{(RecursiveSearch ? " (recursive)" : "")}");
            }
        }