From 0722781fc60565938da42ea252766b30d02e5fb5 Mon Sep 17 00:00:00 2001 From: Tanuja Kirthi Doddapaneni Date: Fri, 26 Jul 2019 11:32:37 +0530 Subject: [PATCH] Modifying the title of the window to "Calculator [Dev]" (#531) * Modifying the title of the window to "Calculator [Dev]" when the build isn't configured with `IsStoreBuild` Fixes #439 --- src/Calculator/Views/TitleBar.xaml.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Calculator/Views/TitleBar.xaml.cpp b/src/Calculator/Views/TitleBar.xaml.cpp index a80868fb..497c916d 100644 --- a/src/Calculator/Views/TitleBar.xaml.cpp +++ b/src/Calculator/Views/TitleBar.xaml.cpp @@ -29,8 +29,11 @@ namespace CalculatorApp Loaded += ref new RoutedEventHandler(this, &TitleBar::OnLoaded); Unloaded += ref new RoutedEventHandler(this, &TitleBar::OnUnloaded); - +#ifdef IsStoreBuild AppName->Text = AppResourceProvider::GetInstance().GetResourceString(L"AppName"); +#else + AppName->Text = AppResourceProvider::GetInstance().GetResourceString(L"DevAppName"); +#endif //IsStoreBuild } void TitleBar::OnLoaded(_In_ Object ^ /*sender*/, _In_ RoutedEventArgs ^ /*e*/)