Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
更改自动登录条件
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft committed Nov 30, 2018
1 parent a27b567 commit 914ff15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion TsinghuaNetUWP/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ namespace winrt::TsinghuaNetUWP::implementation
BackgroundTaskBuilder login;
login.Name(LOGINTASK);
login.TaskEntryPoint(xaml_typename<LoginTask>().Name);
login.SetTrigger(SystemTrigger(SystemTriggerType::NetworkStateChange, true));
login.SetTrigger(SystemTrigger(SystemTriggerType::NetworkStateChange, false));
login.AddCondition(SystemCondition(SystemConditionType::InternetNotAvailable));
login.Register();
}

Expand Down
2 changes: 1 addition & 1 deletion TsinghuaNetUWP/Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
<Identity Name="Berrysoft.TsinghuaNetUWP" Publisher="CN=Straw" Version="1.0.3.0" />
<Identity Name="Berrysoft.TsinghuaNetUWP" Publisher="CN=Straw" Version="1.1.4.0" />
<mp:PhoneIdentity PhoneProductId="091ffa12-1933-4f1b-96a5-4a169e4ab5f5" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>TsinghuaNetUWP</DisplayName>
Expand Down

0 comments on commit 914ff15

Please sign in to comment.