Skip to content

Commit 75c32c1

Browse files
goran-wlove-linger
authored andcommitted
typo: corrected spelling error in App.GetLauncher() method
1 parent a023a92 commit 75c32c1

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

src/App.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public static IStorageProvider GetStorageProvider()
338338
return null;
339339
}
340340

341-
public static ViewModels.Launcher GetLauncer()
341+
public static ViewModels.Launcher GetLauncher()
342342
{
343343
return Current is App app ? app._launcher : null;
344344
}

src/ViewModels/Blame.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public Blame(string repo, string file, string revision)
4545

4646
public void NavigateToCommit(string commitSHA)
4747
{
48-
var launcher = App.GetLauncer();
48+
var launcher = App.GetLauncher();
4949
if (launcher == null)
5050
return;
5151

src/ViewModels/BranchCompare.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public BranchCompare(string repo, Models.Branch baseBranch, Models.Branch toBran
8686

8787
public void NavigateTo(string commitSHA)
8888
{
89-
var launcher = App.GetLauncer();
89+
var launcher = App.GetLauncher();
9090
if (launcher == null)
9191
return;
9292

src/ViewModels/Clone.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public override Task<bool> Sure()
150150
CallUIThread(() =>
151151
{
152152
var node = Preferences.Instance.FindOrAddNodeByRepositoryPath(path, null, true);
153-
var launcher = App.GetLauncer();
153+
var launcher = App.GetLauncher();
154154
var page = null as LauncherPage;
155155
foreach (var one in launcher.Pages)
156156
{

src/ViewModels/Repository.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ public void OpenSubmodule(string submodule)
14011401
};
14021402
}
14031403

1404-
App.GetLauncer().OpenRepositoryInTab(node, null);
1404+
App.GetLauncher().OpenRepositoryInTab(node, null);
14051405
}
14061406

14071407
public void AddWorktree()
@@ -1430,7 +1430,7 @@ public void OpenWorktree(Models.Worktree worktree)
14301430
};
14311431
}
14321432

1433-
App.GetLauncer()?.OpenRepositoryInTab(node, null);
1433+
App.GetLauncher()?.OpenRepositoryInTab(node, null);
14341434
}
14351435

14361436
public List<Models.OpenAIService> GetPreferedOpenAIServices()
@@ -2588,7 +2588,7 @@ public ContextMenu CreateContextMenuForWorktree(Models.Worktree worktree)
25882588

25892589
private LauncherPage GetOwnerPage()
25902590
{
2591-
var launcher = App.GetLauncer();
2591+
var launcher = App.GetLauncher();
25922592
if (launcher == null)
25932593
return null;
25942594

src/ViewModels/RepositoryNode.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ public List<RepositoryNode> SubNodes
7070

7171
public void Edit()
7272
{
73-
var activePage = App.GetLauncer().ActivePage;
73+
var activePage = App.GetLauncher().ActivePage;
7474
if (activePage != null && activePage.CanCreatePopup())
7575
activePage.Popup = new EditRepositoryNode(this);
7676
}
7777

7878
public void AddSubFolder()
7979
{
80-
var activePage = App.GetLauncer().ActivePage;
80+
var activePage = App.GetLauncher().ActivePage;
8181
if (activePage != null && activePage.CanCreatePopup())
8282
activePage.Popup = new CreateGroup(this);
8383
}
@@ -98,7 +98,7 @@ public void OpenTerminal()
9898

9999
public void Delete()
100100
{
101-
var activePage = App.GetLauncer().ActivePage;
101+
var activePage = App.GetLauncher().ActivePage;
102102
if (activePage != null && activePage.CanCreatePopup())
103103
activePage.Popup = new DeleteRepositoryNode(this);
104104
}

src/ViewModels/RevisionCompare.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void Dispose()
100100

101101
public void NavigateTo(string commitSHA)
102102
{
103-
var launcher = App.GetLauncer();
103+
var launcher = App.GetLauncher();
104104
if (launcher == null)
105105
return;
106106

src/ViewModels/Welcome.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public void OpenOrInitRepository(string path, RepositoryNode parent, bool bMoveE
110110
var node = Preferences.Instance.FindOrAddNodeByRepositoryPath(repoRoot, parent, bMoveExistedNode);
111111
Refresh();
112112

113-
var launcher = App.GetLauncer();
113+
var launcher = App.GetLauncher();
114114
launcher?.OpenRepositoryInTab(node, launcher.ActivePage);
115115
}
116116

@@ -122,7 +122,7 @@ public void InitRepository(string path, RepositoryNode parent, string reason)
122122
return;
123123
}
124124

125-
var activePage = App.GetLauncer().ActivePage;
125+
var activePage = App.GetLauncher().ActivePage;
126126
if (activePage != null && activePage.CanCreatePopup())
127127
activePage.Popup = new Init(activePage.Node.Id, path, parent, reason);
128128
}
@@ -135,7 +135,7 @@ public void Clone()
135135
return;
136136
}
137137

138-
var activePage = App.GetLauncer().ActivePage;
138+
var activePage = App.GetLauncher().ActivePage;
139139
if (activePage != null && activePage.CanCreatePopup())
140140
activePage.Popup = new Clone(activePage.Node.Id);
141141
}
@@ -163,7 +163,7 @@ public void ScanDefaultCloneDir()
163163
return;
164164
}
165165

166-
var activePage = App.GetLauncer().ActivePage;
166+
var activePage = App.GetLauncher().ActivePage;
167167
if (activePage != null && activePage.CanCreatePopup())
168168
activePage.StartPopup(new ScanRepositories(defaultCloneDir));
169169
}
@@ -175,7 +175,7 @@ public void ClearSearchFilter()
175175

176176
public void AddRootNode()
177177
{
178-
var activePage = App.GetLauncer().ActivePage;
178+
var activePage = App.GetLauncher().ActivePage;
179179
if (activePage != null && activePage.CanCreatePopup())
180180
activePage.Popup = new CreateGroup(null);
181181
}
@@ -197,7 +197,7 @@ public ContextMenu CreateContextMenu(RepositoryNode node)
197197
openAll.Icon = App.CreateMenuIcon("Icons.Folder.Open");
198198
openAll.Click += (_, e) =>
199199
{
200-
OpenAllInNode(App.GetLauncer(), node);
200+
OpenAllInNode(App.GetLauncher(), node);
201201
e.Handled = true;
202202
};
203203

@@ -212,7 +212,7 @@ public ContextMenu CreateContextMenu(RepositoryNode node)
212212
open.Icon = App.CreateMenuIcon("Icons.Folder.Open");
213213
open.Click += (_, e) =>
214214
{
215-
App.GetLauncer()?.OpenRepositoryInTab(node, null);
215+
App.GetLauncher()?.OpenRepositoryInTab(node, null);
216216
e.Handled = true;
217217
};
218218

@@ -267,7 +267,7 @@ public ContextMenu CreateContextMenu(RepositoryNode node)
267267
move.Icon = App.CreateMenuIcon("Icons.MoveToAnotherGroup");
268268
move.Click += (_, e) =>
269269
{
270-
var activePage = App.GetLauncer().ActivePage;
270+
var activePage = App.GetLauncher().ActivePage;
271271
if (activePage != null && activePage.CanCreatePopup())
272272
activePage.Popup = new MoveRepositoryNode(node);
273273

src/Views/WelcomeToolbar.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public WelcomeToolbar()
1616

1717
private async void OpenLocalRepository(object _1, RoutedEventArgs e)
1818
{
19-
var activePage = App.GetLauncer().ActivePage;
19+
var activePage = App.GetLauncher().ActivePage;
2020
if (activePage == null || !activePage.CanCreatePopup())
2121
return;
2222

0 commit comments

Comments
 (0)