Skip to content

Commit

Permalink
Merge pull request #156 from Jaksuhn/anon-preset-name-change
Browse files Browse the repository at this point in the history
use preset string over guid for anonymous names
  • Loading branch information
InitialDet authored Feb 7, 2024
2 parents 2c8793b + d2e40d8 commit 769f647
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions AutoHook/IPC/AutoHookIPC.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using AutoHook.Configurations;
using System;
using System.Linq;

namespace AutoHook.IPC
Expand Down Expand Up @@ -40,7 +39,7 @@ private static void SetPreset(string preset)

private static void CreateAndSelectAnonymousPreset(string preset)
{
var name = $"anon_{Guid.NewGuid()}";
var name = $"anon_{preset}";
var _import = Configuration.ImportActionStack(preset);
if (_import == null) return;
_import.RenamePreset(name);
Expand Down

0 comments on commit 769f647

Please sign in to comment.