Skip to content

Commit

Permalink
Update to 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ytdlder committed Dec 9, 2024
1 parent c2e2a2b commit 6aa40c8
Show file tree
Hide file tree
Showing 9 changed files with 197 additions and 87 deletions.
15 changes: 15 additions & 0 deletions App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="OpenXR_Switcher.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<userSettings>
<OpenXR_Switcher.Properties.Settings>
<setting name="WindowSize" serializeAs="String">
<value>800, 600</value>
</setting>
</OpenXR_Switcher.Properties.Settings>
</userSettings>
</configuration>
16 changes: 10 additions & 6 deletions Functions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ private static void AddPanel(FlowLayoutPanel layoutpanel, string filepath, strin
filepathname = "NeckSafer";
else if (string.Equals(filepathname, "bin\\OpenKneeboard-OpenXR.json", StringComparison.OrdinalIgnoreCase))
filepathname = "OpenKneeBoard";

else
{
string[] temp = filename.Split('_', '-');
Expand Down Expand Up @@ -364,13 +364,17 @@ private static void AddPanel(FlowLayoutPanel layoutpanel, string filepath, strin
// Check filepathname with user set name
string originalname = filepathname;

for (int i = 0; i < (allusersetnames.Length / 2); i++) // durch 2, weil zweidimensionales Array und Length alle Felder zählt!
// Are there any user-saved names?
if (allusersetnames != null)
{
if (filepathname == allusersetnames[i, 0])
for (int i = 0; i < (allusersetnames.Length / 2); i++) // durch 2, weil zweidimensionales Array und Length alle Felder zählt!
{
originalname = allusersetnames[i, 0];
filepathname = allusersetnames[i, 1];
break;
if (filepathname == allusersetnames[i, 0])
{
originalname = allusersetnames[i, 0];
filepathname = allusersetnames[i, 1];
break;
}
}
}

Expand Down
14 changes: 13 additions & 1 deletion OpenXR Switcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ApplicationManifest>app.manifest</ApplicationManifest>
<PackageIcon>icon3.png</PackageIcon>
<ApplicationIcon>icon3.ico</ApplicationIcon>
<Version>1.2.1</Version>
<Version>1.2.2</Version>
<PlatformTarget>x64</PlatformTarget>
<Title>OpenXR-Switcher</Title>
</PropertyGroup>
Expand Down Expand Up @@ -44,6 +44,11 @@
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Update="Properties\Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
Expand All @@ -53,4 +58,11 @@
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>

</Project>
38 changes: 38 additions & 0 deletions Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Properties/Settings.settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="OpenXR_Switcher.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="WindowSize" Type="System.Drawing.Size" Scope="User">
<Value Profile="(Default)">800, 600</Value>
</Setting>
</Settings>
</SettingsFile>
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ Reads the Windows registry which OpenXR runtimes/layers are installed, checks if

## Version History

* 1.2.2
* fixed bug, when no custom name has been set yet
* added: open with last window size
* 1.2.1
* add version information to the title
* 1.2
Expand Down
118 changes: 60 additions & 58 deletions WindowMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6aa40c8

Please sign in to comment.