diff --git a/FoliCon/Properties/Langs/Lang.hi.resx b/FoliCon/Properties/Langs/Lang.hi.resx index a933a9cf..7d679404 100644 --- a/FoliCon/Properties/Langs/Lang.hi.resx +++ b/FoliCon/Properties/Langs/Lang.hi.resx @@ -244,7 +244,7 @@ बनाए गए आइकन: - बेकार + निष्क्रिय नज़रअंदाज़ करना diff --git a/FoliCon/ViewModels/MainWindowViewModel.cs b/FoliCon/ViewModels/MainWindowViewModel.cs index 2d2e5d9d..9d1502c6 100644 --- a/FoliCon/ViewModels/MainWindowViewModel.cs +++ b/FoliCon/ViewModels/MainWindowViewModel.cs @@ -32,6 +32,7 @@ public class MainWindowViewModel : BindableBase, IFileDragDropTarget, IDisposabl private string _searchMode = "Movie"; private bool _isSearchModeVisible = true; private bool _stopIconDownload; + private Languages _appLanguage; private TMDbLib.Client.TMDbClient _tmdbClient; private IGDB.IGDBClient _igdbClient; private IgdbClass _igdbObject; @@ -145,6 +146,11 @@ public bool IsBusy set => SetProperty(ref _isBusy, value); } + public Languages AppLanguage + { + get => _appLanguage; + set => SetProperty(ref _appLanguage, value); + } #endregion GetterSetters #region DelegateCommands @@ -197,7 +203,8 @@ public MainWindowViewModel(IDialogService dialogService) Services.Tracker.Configure() .Property(p => p.IsRatingVisible, true) .Property(p => p.IsPosterMockupUsed, true) - .Property(p => p.IsPosterWindowShown) + .Property(p => p.IsPosterWindowShown, false) + .Property(p =>p.AppLanguage, Languages.English) .PersistOn(nameof(PropertyChanged)); Services.Tracker.Track(this); Util.CheckForUpdate(true); @@ -276,7 +283,7 @@ private async System.Threading.Tasks.Task ProcessPosterModeAsync() GlobalVariables.SkipAll = false; foreach (var itemTitle in Fnames) { - var fullFolderPath = SelectedFolder + "\\" + itemTitle; + var fullFolderPath = $@"{SelectedFolder}\{itemTitle}"; var dialogResult = false; StatusBarProperties.AppStatus = LangProvider.GetLang("SearchingWithCount").Format(itemTitle); // TODO: Set cursor to WAIT. diff --git a/FoliCon/Views/MainWindow.xaml b/FoliCon/Views/MainWindow.xaml index 60dec175..1f64ada1 100644 --- a/FoliCon/Views/MainWindow.xaml +++ b/FoliCon/Views/MainWindow.xaml @@ -70,7 +70,7 @@ - +