Skip to content

Commit

Permalink
Fix auto copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisFeline committed Dec 22, 2024
1 parent 80a76e1 commit c16d49e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Latest Changelog

- Fixed terror names on Webhook embed not showing the correct variant name.
- Fixed new line handling on custom Chatbox messages with JS tags.
- Fixed new line handling on custom Chatbox messages with JS tags.
- Fixed Auto Copy on Open copying while this feature was disabled.
4 changes: 4 additions & 0 deletions Utils/Audio/NotificationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ internal static void Reset() {
}

internal static void PlaySave() {
Logger.Debug("Playing - Save");

if (StartPlaying(Settings.Get.AudioLocation, Random.Shared.Next(0,127) == 87 ? SecretSaveStream : DefaultSaveStream)) {
Settings.Get.AudioLocation = null;
Settings.Export();
}
}

internal static void PlayCopy() {
Logger.Debug("Playing - Copy");

if (StartPlaying(Settings.Get.AudioCopyLocation, DefaultCopyStream)) {
Settings.Get.AudioCopyLocation = null;
Settings.Export();
Expand Down
2 changes: 1 addition & 1 deletion Windows/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ private void FirstImport() {
if (temp == null || temp.UniversalTime < h.UniversalTime) temp = h;
}

if (Settings.Get.AutoCopy) {
if (Settings.Get.AutoCopy && Settings.Get.CopyOnOpen) {
Entry? first = temp?.Database.FirstOrDefault();
if (first != null) {
SetRecent(first);
Expand Down

0 comments on commit c16d49e

Please sign in to comment.