Skip to content

Commit a70a2ac

Browse files
committed
* Typo fix
* Added option to clear filesystem standby cache
1 parent 0572a99 commit a70a2ac

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

MemPlus/Windows/MainWindow.xaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
99
<Grid.RowDefinitions>
1010
<RowDefinition Height="Auto"></RowDefinition>
11+
<RowDefinition Height="Auto"></RowDefinition>
1112
</Grid.RowDefinitions>
12-
<Button Content="Clear memory" Click="BtnClearMemory_OnClick" Padding="5">
13-
14-
</Button>
13+
<CheckBox x:Name="ChbFileSystemCache" Content="Clear FileSystem standby cache"></CheckBox>
14+
<Button Grid.Row="1" Content="Clear memory" Click="BtnClearMemory_OnClick" Padding="5" />
1515
</Grid>
1616
</Window>

MemPlus/Windows/MainWindow.xaml.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ private void BtnClearMemory_OnClick(object sender, RoutedEventArgs e)
2121
//Clear working set of all processes that the user has access to
2222
Classes.MemPlus.EmptyWorkingSetFunction();
2323
//Clear file system cache
24-
Classes.MemPlus.ClearFileSystemCache(true);
24+
Classes.MemPlus.ClearFileSystemCache(ChbFileSystemCache.IsChecked != null && ChbFileSystemCache.IsChecked.Value);
2525

26-
MessageBox.Show("Your memory is has now been cleared of any non-essential data.", "MemPlus",MessageBoxButton.OK, MessageBoxImage.Information);
26+
MessageBox.Show("Your memory has now been cleared of any non-essential data.", "MemPlus",MessageBoxButton.OK, MessageBoxImage.Information);
2727
}
2828
catch (Exception ex)
2929
{

0 commit comments

Comments
 (0)