Fix SteamGridDB offer

pull/98/head
Brian Lima 2 years ago
parent 63ed7de1e7
commit c278c6389b

@ -23,11 +23,12 @@
<value>False</value>
</setting>
<setting name="SteamGridDbApiKey" serializeAs="String">
<value>617eb1e4ce186060a4b1e2ab0d468a44</value>
<value />
</setting>
<setting name="SteamGridDB_Style" serializeAs="Xml">
<value>
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<string>any</string>
<string>alternate</string>
<string>blurred</string>
@ -39,7 +40,8 @@
</setting>
<setting name="SteamGridDB_Type" serializeAs="Xml">
<value>
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<string>any</string>
<string>static</string>
<string>animated</string>
@ -48,7 +50,8 @@
</setting>
<setting name="SteamGridDB_nfsw" serializeAs="Xml">
<value>
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<string>false</string>
<string>any</string>
<string>true</string>
@ -57,7 +60,8 @@
</setting>
<setting name="SteamGridDB_Humor" serializeAs="Xml">
<value>
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<string>false</string>
<string>any</string>
<string>true</string>

@ -683,8 +683,10 @@ namespace UWPHook
/// <param name="e"></param>
private void Window_Loaded(object sender, RoutedEventArgs e)
{
if (String.IsNullOrEmpty(Settings.Default.SteamGridDbApiKey) && !Settings.Default.OfferedSteamGridDB)
if (!Settings.Default.OfferedSteamGridDB)
{
Settings.Default.SteamGridDbApiKey = "";
Settings.Default.OfferedSteamGridDB = true;
Settings.Default.Save();

@ -73,7 +73,7 @@ namespace UWPHook.Properties {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("617eb1e4ce186060a4b1e2ab0d468a44")]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string SteamGridDbApiKey {
get {
return ((string)(this["SteamGridDbApiKey"]));

@ -15,7 +15,7 @@
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="SteamGridDbApiKey" Type="System.String" Scope="User">
<Value Profile="(Default)">617eb1e4ce186060a4b1e2ab0d468a44</Value>
<Value Profile="(Default)" />
</Setting>
<Setting Name="SteamGridDB_Style" Type="System.Collections.Specialized.StringCollection" Scope="User">
<Value Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;

@ -97,14 +97,5 @@ namespace UWPHook
"Log-in, or create your account, go to your profile preferences and click 'Generate API Key', then paste the key back on UWPHook.", "Attention!", MessageBoxButton.OK, MessageBoxImage.Information );
System.Diagnostics.Process.Start("https://www.steamgriddb.com/profile/preferences/api");
}
//private void test()
//{
// FixHeight = 1280;
//
// FixWidth = 1024;
//
// Resolution.CResolution ChangeRes1024 = new Resolution.CResolution(FixHeight, FixWidth);
//}
}
}
Loading…
Cancel
Save