Skip to content

Commit

Permalink
Patch release [v1.7.3.0]
Browse files Browse the repository at this point in the history
- Fixed a bug with the caching of KeyData values
  • Loading branch information
o7q committed May 18, 2023
1 parent f33b0ec commit 2ec2a82
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
# Overview
Keystrokes allows the user to create and customize key presets that are displayed on the screen.

## Features
* Full Keyboard Support
* Full Xbox Controller Support
* Highly customizable with a well documented and intuitive interface
* Support for images, audio, custom fonts, and more

---

# Usage
Expand Down
Binary file modified assets/images/showcase/menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
~ v1.7.3.0
- Fixed a bug with the caching of KeyData values

~ v1.7.2.0
- Fixed a bug where the key would infinitely get created by the autosave system
- Added a "Created On Version" stat
Expand Down
2 changes: 1 addition & 1 deletion src/Keystrokes/Includes/Data/Storage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Keystrokes.Data
{
public static class Storage
{
public static string VERSION = "v1.7.2";
public static string VERSION = "v1.7.3";
public static List<Form> keys = new List<Form>();

public static string[] key_names =
Expand Down
5 changes: 2 additions & 3 deletions src/Keystrokes/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,14 @@ private void MainTooltip_Draw(object sender, DrawToolTipEventArgs e)

private void LoadPresetButton_Click(object sender, EventArgs e)
{
KeyInfo keyData_ = new KeyInfo();

// load keys into array
string[] files = Directory.GetFiles("Keystrokes\\presets\\" + PresetListbox.SelectedItem, "*.key");
foreach (string file in files)
{
var name = new FileInfo(file).Name;
KeyInfo keyData_ = new KeyInfo();

// load data from file
var name = new FileInfo(file).Name;
string keyFile = File.ReadAllText("Keystrokes\\presets\\" + PresetListbox.SelectedItem + "\\" + name);
string[] keySetting = keyFile.Split('\n');

Expand Down

0 comments on commit 2ec2a82

Please sign in to comment.