Skip to content

Commit cdb84c7

Browse files
committed
typo: ShowDailog -> ShowDialog
Signed-off-by: leo <[email protected]>
1 parent a6ebc15 commit cdb84c7

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

src/App.Commands.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public static bool IsCheckForUpdateCommandVisible
3737
}
3838
}
3939

40-
public static readonly Command OpenPreferencesCommand = new Command(async _ => await ShowDailog(new Views.Preferences()));
41-
public static readonly Command OpenHotkeysCommand = new Command(async _ => await ShowDailog(new Views.Hotkeys()));
40+
public static readonly Command OpenPreferencesCommand = new Command(async _ => await ShowDialog(new Views.Preferences()));
41+
public static readonly Command OpenHotkeysCommand = new Command(async _ => await ShowDialog(new Views.Hotkeys()));
4242
public static readonly Command OpenAppDataDirCommand = new Command(_ => Native.OS.OpenInFileManager(Native.OS.DataDir));
43-
public static readonly Command OpenAboutCommand = new Command(async _ => await ShowDailog(new Views.About()));
43+
public static readonly Command OpenAboutCommand = new Command(async _ => await ShowDialog(new Views.About()));
4444
public static readonly Command CheckForUpdateCommand = new Command(_ => (Current as App)?.Check4Update(true));
4545
public static readonly Command QuitCommand = new Command(_ => Quit(0));
4646
public static readonly Command CopyTextBlockCommand = new Command(async p =>

src/App.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static object CreateViewForViewModel(object data)
120120
return null;
121121
}
122122

123-
public static Task ShowDailog(object data, Window owner = null)
123+
public static Task ShowDialog(object data, Window owner = null)
124124
{
125125
if (owner == null)
126126
{
@@ -666,7 +666,7 @@ private void ShowSelfUpdateResult(object data)
666666
{
667667
Dispatcher.UIThread.Post(async () =>
668668
{
669-
await ShowDailog(new ViewModels.SelfUpdate { Data = data });
669+
await ShowDialog(new ViewModels.SelfUpdate { Data = data });
670670
});
671671
}
672672

src/ViewModels/Histories.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ public ContextMenu MakeContextMenu(DataGrid list)
653653
return;
654654
}
655655

656-
await App.ShowDailog(new InteractiveRebase(_repo, current, commit));
656+
await App.ShowDialog(new InteractiveRebase(_repo, current, commit));
657657
e.Handled = true;
658658
};
659659

src/ViewModels/Launcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ public ContextMenu CreateContextForWorkspace()
452452
configure.Header = App.Text("Workspace.Configure");
453453
configure.Click += async (_, e) =>
454454
{
455-
await App.ShowDailog(new ConfigureWorkspace());
455+
await App.ShowDialog(new ConfigureWorkspace());
456456
e.Handled = true;
457457
};
458458
menu.Items.Add(configure);

src/ViewModels/Repository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ public ContextMenu CreateContextMenuForGitLFS()
16681668
{
16691669
locks.Click += async (_, e) =>
16701670
{
1671-
await App.ShowDailog(new LFSLocks(this, _remotes[0].Name));
1671+
await App.ShowDialog(new LFSLocks(this, _remotes[0].Name));
16721672
e.Handled = true;
16731673
};
16741674
}
@@ -1681,7 +1681,7 @@ public ContextMenu CreateContextMenuForGitLFS()
16811681
lockRemote.Header = remoteName;
16821682
lockRemote.Click += async (_, e) =>
16831683
{
1684-
await App.ShowDailog(new LFSLocks(this, remoteName));
1684+
await App.ShowDialog(new LFSLocks(this, remoteName));
16851685
e.Handled = true;
16861686
};
16871687
locks.Items.Add(lockRemote);

src/ViewModels/WorkingCopy.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ public ContextMenu CreateContextMenuForStagedChanges(string selectedSingleFolder
12121212
{
12131213
ai.Click += async (_, e) =>
12141214
{
1215-
await App.ShowDailog(new AIAssistant(_repo, services[0], _selectedStaged, t => CommitMessage = t));
1215+
await App.ShowDialog(new AIAssistant(_repo, services[0], _selectedStaged, t => CommitMessage = t));
12161216
e.Handled = true;
12171217
};
12181218
}
@@ -1226,7 +1226,7 @@ public ContextMenu CreateContextMenuForStagedChanges(string selectedSingleFolder
12261226
item.Header = service.Name;
12271227
item.Click += async (_, e) =>
12281228
{
1229-
await App.ShowDailog(new AIAssistant(_repo, dup, _selectedStaged, t => CommitMessage = t));
1229+
await App.ShowDialog(new AIAssistant(_repo, dup, _selectedStaged, t => CommitMessage = t));
12301230
e.Handled = true;
12311231
};
12321232

@@ -1667,7 +1667,7 @@ public ContextMenu CreateContextForOpenAI()
16671667

16681668
if (services.Count == 1)
16691669
{
1670-
_ = App.ShowDailog(new AIAssistant(_repo, services[0], _staged, t => CommitMessage = t));
1670+
_ = App.ShowDialog(new AIAssistant(_repo, services[0], _staged, t => CommitMessage = t));
16711671
return null;
16721672
}
16731673

@@ -1679,7 +1679,7 @@ public ContextMenu CreateContextForOpenAI()
16791679
item.Header = service.Name;
16801680
item.Click += async (_, e) =>
16811681
{
1682-
await App.ShowDailog(new AIAssistant(_repo, dup, _staged, t => CommitMessage = t));
1682+
await App.ShowDialog(new AIAssistant(_repo, dup, _staged, t => CommitMessage = t));
16831683
e.Handled = true;
16841684
};
16851685

@@ -1897,7 +1897,7 @@ private void DoCommit(bool autoStage, bool autoPush, CommitCheckPassed checkPass
18971897
{
18981898
if ((!autoStage && _staged.Count == 0) || (autoStage && _cached.Count == 0))
18991899
{
1900-
_ = App.ShowDailog(new ConfirmEmptyCommit(_cached.Count > 0, stageAll => DoCommit(stageAll, autoPush, CommitCheckPassed.FileCount)));
1900+
_ = App.ShowDialog(new ConfirmEmptyCommit(_cached.Count > 0, stageAll => DoCommit(stageAll, autoPush, CommitCheckPassed.FileCount)));
19011901
return;
19021902
}
19031903
}

src/Views/Launcher.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,15 @@ protected override async void OnKeyDown(KeyEventArgs e)
166166
// Ctrl+, opens preference dialog (macOS use hotkeys in system menu bar)
167167
if (!OperatingSystem.IsMacOS() && e is { KeyModifiers: KeyModifiers.Control, Key: Key.OemComma })
168168
{
169-
await App.ShowDailog(new Preferences());
169+
await App.ShowDialog(new Preferences());
170170
e.Handled = true;
171171
return;
172172
}
173173

174174
// F1 opens preference dialog (macOS use hotkeys in system menu bar)
175175
if (!OperatingSystem.IsMacOS() && e.Key == Key.F1)
176176
{
177-
await App.ShowDailog(new Hotkeys());
177+
await App.ShowDialog(new Hotkeys());
178178
return;
179179
}
180180

src/Views/Preferences.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ private async void OnUseNativeWindowFrameChanged(object sender, RoutedEventArgs
384384
if (sender is CheckBox box)
385385
{
386386
ViewModels.Preferences.Instance.UseSystemWindowFrame = box.IsChecked == true;
387-
await App.ShowDailog(new ConfirmRestart());
387+
await App.ShowDialog(new ConfirmRestart());
388388
}
389389

390390
e.Handled = true;

src/Views/RepositoryToolbar.axaml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private async void OpenStatistics(object _, RoutedEventArgs e)
2626
{
2727
if (DataContext is ViewModels.Repository repo)
2828
{
29-
await App.ShowDailog(new ViewModels.Statistics(repo.FullPath));
29+
await App.ShowDialog(new ViewModels.Statistics(repo.FullPath));
3030
e.Handled = true;
3131
}
3232
}
@@ -35,7 +35,7 @@ private async void OpenConfigure(object sender, RoutedEventArgs e)
3535
{
3636
if (DataContext is ViewModels.Repository repo)
3737
{
38-
await App.ShowDailog(new ViewModels.RepositoryConfigure(repo));
38+
await App.ShowDialog(new ViewModels.RepositoryConfigure(repo));
3939
e.Handled = true;
4040
}
4141
}
@@ -147,7 +147,7 @@ private async void OpenGitLogs(object sender, RoutedEventArgs e)
147147
{
148148
if (DataContext is ViewModels.Repository repo)
149149
{
150-
await App.ShowDailog(new ViewModels.ViewLogs(repo));
150+
await App.ShowDialog(new ViewModels.ViewLogs(repo));
151151
e.Handled = true;
152152
}
153153
}

src/Views/WorkingCopy.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private async void OnOpenAssumeUnchanged(object sender, RoutedEventArgs e)
3030
{
3131
var repoView = this.FindAncestorOfType<Repository>();
3232
if (repoView is { DataContext: ViewModels.Repository repo })
33-
await App.ShowDailog(new ViewModels.AssumeUnchangedManager(repo));
33+
await App.ShowDialog(new ViewModels.AssumeUnchangedManager(repo));
3434

3535
e.Handled = true;
3636
}

0 commit comments

Comments
 (0)