fix: several typos in source code (#895)

This commit is contained in:
wl2776 2025-01-12 18:11:28 -08:00 committed by GitHub
parent 91883c9f11
commit 6e5626f267
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
67 changed files with 737 additions and 737 deletions

View file

@ -51,7 +51,7 @@ namespace SourceGit.ViewModels
Pages = new AvaloniaList<LauncherPage>();
AddNewTab();
var pref = Preference.Instance;
var pref = Preferences.Instance;
if (string.IsNullOrEmpty(startupRepo))
{
ActiveWorkspace = pref.GetActiveWorkspace();
@ -117,7 +117,7 @@ namespace SourceGit.ViewModels
public void Quit(double width, double height)
{
var pref = Preference.Instance;
var pref = Preferences.Instance;
pref.Layout.LauncherWidth = width;
pref.Layout.LauncherHeight = height;
pref.Save();
@ -355,7 +355,7 @@ namespace SourceGit.ViewModels
public ContextMenu CreateContextForWorkspace()
{
var pref = Preference.Instance;
var pref = Preferences.Instance;
var menu = new ContextMenu();
for (var i = 0; i < pref.Workspaces.Count; i++)
@ -481,7 +481,7 @@ namespace SourceGit.ViewModels
_ignoreIndexChange = true;
var pref = Preference.Instance;
var pref = Preferences.Instance;
foreach (var w in pref.Workspaces)
w.IsActive = false;