Skip to content

Commit

Permalink
Feature: Append app name to title (#10900)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaiganeshKumaran authored Jan 2, 2023
1 parent 1a21156 commit 2038615
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Files.App/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Media.Animation;
using Microsoft.UI.Xaml.Navigation;
using Microsoft.Windows.AppLifecycle;
using System;
using System.IO;
using System.Linq;
Expand Down
3 changes: 2 additions & 1 deletion src/Files.App/ViewModels/MainPageViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.DependencyInjection;
using CommunityToolkit.WinUI.Helpers;
using CommunityToolkit.Mvvm.Input;
using Files.App.Extensions;
using Files.App.Filesystem;
Expand Down Expand Up @@ -233,7 +234,7 @@ public async void UpdateInstanceProperties(object navigationArg)
if (AppInstances.Count > 1)
windowTitle = $"{windowTitle} ({AppInstances.Count})";
if (navigationArg == SelectedTabItem?.TabItemArguments?.NavigationArg)
App.GetAppWindow(App.Window).Title = windowTitle;
App.GetAppWindow(App.Window).Title = $"{windowTitle} - Files";
}

public static async Task UpdateTabInfo(TabItem tabItem, object navigationArg)
Expand Down

0 comments on commit 2038615

Please sign in to comment.