Skip to content

Commit cc40d9f

Browse files
committed
Back to Ctrl+S
1 parent 6b968b1 commit cc40d9f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/CodeSnip/MainViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public MainViewModel(IFlyoutService flyoutService)
137137
ShowEmptyCategories = settingsService.ShowEmptyCategories;
138138

139139
}
140+
140141
public async Task InitializeAsync()
141142
{
142143
await Task.Run(() => _databaseService.InitializeDatabaseIfNeeded());
@@ -149,7 +150,7 @@ public async Task InitializeAsync()
149150

150151
PopulateLanguagesCollection(languages);
151152

152-
if (settingsService.LastSnippet != null && settingsService.LoadOnStartup)
153+
if (settingsService.LastSnippet != null)
153154
{
154155
RestoreSelectedSnippetState(settingsService.LastSnippet);
155156
}

src/CodeSnip/MainWindow.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
<mah:MetroWindow.InputBindings>
5353
<!-- F1 : Open About dialog -->
5454
<KeyBinding Key="F1" Command="{Binding RelativeSource={RelativeSource AncestorType=Window}, Path=OpenAboutCommand}" />
55-
<!-- Ctrl+Shift + S : Save snippet code -->
56-
<KeyBinding Key="S" Modifiers="Ctrl+Shift" Command="{Binding SaveCodeCommand}"/>
55+
<!-- Ctrl + S : Save snippet code -->
56+
<KeyBinding Key="S" Modifiers="Ctrl" Command="{Binding SaveCodeCommand}"/>
5757
<!-- Ctrl+Shift + A : Add new snippet -->
5858
<KeyBinding Key="A" Modifiers="Ctrl+Shift" Command="{Binding AddSnippetCommand}"/>
5959
<!-- Ctrl+Shift + E : Edit current cnippet metadata -->
@@ -228,7 +228,7 @@
228228
<Path Data="{Binding OpenCloseIcon}" Fill="{DynamicResource MahApps.Brushes.AccentBase}"
229229
Width="20" Height="20" Stretch="Uniform" />
230230
</Button>
231-
<Button Command="{Binding SaveCodeCommand}" Margin="10,0,0,0" ToolTip="Save snippet&#xA;Ctrl+Shift+S">
231+
<Button Command="{Binding SaveCodeCommand}" Margin="10,0,0,0" ToolTip="Save snippet&#xA;Ctrl+S">
232232
<Path Data="{StaticResource Save}" Fill="{DynamicResource MahApps.Brushes.AccentBase}"
233233
Width="20" Height="20" Stretch="Uniform" />
234234
</Button>

0 commit comments

Comments
 (0)