Skip to content

Commit 3d12e29

Browse files
committed
1.0.72?
1 parent f9307ac commit 3d12e29

File tree

6 files changed

+27
-8
lines changed

6 files changed

+27
-8
lines changed

YouAreAFailure.sln

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{E0F62E08-4FF9-404B-A936-8357D5542940}"
1111
ProjectSection(SolutionItems) = preProject
1212
.editorconfig = .editorconfig
13+
download-video.sh = download-video.sh
14+
README.md = README.md
1315
EndProjectSection
1416
EndProject
1517
Global

YouAreAFailure/Failure/Settings.xaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@
3434
</TextBlock>
3535

3636
<TextBlock Style="{StaticResource Header2}">App Theme</TextBlock>
37+
<TextBlock FontSize="16" FontStyle="Italic">It is self-explained, do you understand?</TextBlock>
3738

38-
<muxc:InfoBar x:Name="ThemeChangeInfoBar" />
39+
<muxc:InfoBar x:Name="ThemeChangeInfoBar" Margin="-1,10,0,-6" />
3940
<muxc:InfoBar
4041
x:Name="ThemeChangeAlert"
4142
Title="You need to restart the app to apply the changes"
43+
Margin="-1,10,0,0"
4244
IsClosable="False"
4345
Severity="Warning">
4446
<muxc:InfoBar.ActionButton>
@@ -68,7 +70,7 @@
6870

6971
<TextBlock Style="{StaticResource Header2}">Aggressive Mode</TextBlock>
7072
<TextBlock FontSize="16" TextWrapping="Wrap">
71-
You will get RICK ROLL if you stop watching the video before it is finished
73+
You will get RICK ROLL if you stop watching the video before it is finished, considerably increase your concentration and motivation.
7274
</TextBlock>
7375
<ToggleSwitch
7476
x:Name="AggressiveSwitch"

YouAreAFailure/Failure/Settings.xaml.cs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,25 @@ private async void ResetData_Click(object sender, RoutedEventArgs e) {
124124
}
125125
}
126126

127-
private void AggressiveSwitch_Toggled(object sender, RoutedEventArgs e) {
127+
private async void AggressiveSwitch_Toggled(object sender, RoutedEventArgs e) {
128+
var tSwitch = (sender as ToggleSwitch)!;
128129
ApplicationData.Current.LocalSettings.Values[nameof(Classes.Key.AggressiveMode)]
129-
= (sender as ToggleSwitch)!.IsOn;
130+
= tSwitch.IsOn;
131+
132+
if (!tSwitch.IsOn) {
133+
var dialog = new ContentDialog {
134+
Title = "R u sure?",
135+
Content = "I recommend to you to keep this on, Concentration is the key.",
136+
DefaultButton = ContentDialogButton.Primary,
137+
PrimaryButtonText = "Y E S",
138+
CloseButtonText = "no"
139+
};
140+
141+
var result = await dialog.ShowAsync();
142+
143+
if (result == ContentDialogResult.None) {
144+
tSwitch.IsOn = true;
145+
}
146+
}
130147
}
131148
}

YouAreAFailure/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Identity
1010
Name="65313Leomotors.YouareaFailure"
1111
Publisher="CN=E10452D0-AB02-4FD0-8CF3-B1A36A4584AA"
12-
Version="1.0.70.0" />
12+
Version="1.0.72.0" />
1313

1414
<mp:PhoneIdentity PhoneProductId="9b164781-9d5e-4668-89da-851e4bb1ad57" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
1515

YouAreAFailure/Package.debug.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Identity
1010
Name="Leomotors.YouAreAFailure.Debug"
1111
Publisher="CN=Leomotors"
12-
Version="1.0.70.0" />
12+
Version="1.0.72.0" />
1313

1414
<mp:PhoneIdentity PhoneProductId="54184a93-8dcf-4a09-9cf4-cee9c428cbf4" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
1515

YouAreAFailure/YouAreAFailure.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,6 @@
277277
<Content Include="..\LICENSE">
278278
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
279279
</Content>
280-
<None Include="..\download-video.sh" />
281-
<None Include="..\README.md" />
282280
</ItemGroup>
283281
<ItemGroup />
284282
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">

0 commit comments

Comments
 (0)