Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions QuickNotes/Community.PowerToys.Run.Plugin.QuickNotes/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ public void Init(PluginInitContext context)
Context.API.ThemeChanged += OnThemeChanged;

var customPath = Environment.GetEnvironmentVariable(CUSTOM_PATH_ENV_VAR);
var appDataPath = string.IsNullOrEmpty(customPath)
? Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
var appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
var powerToysPath = string.IsNullOrEmpty(customPath)
? Path.Combine(appDataPath, "Microsoft", "PowerToys", "QuickNotes")
: customPath;

var powerToysPath = Path.Combine(appDataPath, "Microsoft", "PowerToys", "QuickNotes");

if (!Directory.Exists(powerToysPath))
Directory.CreateDirectory(powerToysPath);

Expand Down
Loading