Skip to content

Commit

Permalink
🐞 Fix references to non-existent images, remove beep sound
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Sep 26, 2024
1 parent 5989b92 commit 2047c08
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 40 deletions.
6 changes: 0 additions & 6 deletions Loop/Assets.xcassets/Window Actions/Contents.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion Loop/Luminare/LuminareManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import SwiftUI
class LuminareManager {
static let iconConfiguration = SettingsTab("Icon", Image(._18PxSquareSparkle), IconConfigurationView())
static let accentColorConfiguration = SettingsTab("Accent Color", Image(._18PxPaintbrush), AccentColorConfigurationView())
static let radialMenuConfiguration = SettingsTab("Radial Menu", Image("loop"), RadialMenuConfigurationView())
static let radialMenuConfiguration = SettingsTab("Radial Menu", Image(.loop), RadialMenuConfigurationView())
static let previewConfiguration = SettingsTab("Preview", Image(._18PxSidebarRight2), PreviewConfigurationView())

static let behaviorConfiguration = SettingsTab("Behavior", Image(._18PxGear), BehaviorConfigurationView())
Expand Down
4 changes: 0 additions & 4 deletions Loop/Managers/LoopManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,6 @@ private extension LoopManager {
// Icon stuff
Defaults[.timesLooped] += 1
IconManager.checkIfUnlockedNewIcon()
} else {
if targetWindow == nil, isLoopActive {
NSSound.beep()
}
}

isLoopActive = false
Expand Down
2 changes: 1 addition & 1 deletion Loop/Radial Menu/RadialMenuView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ struct RadialMenuView: View {

Group {
if window == nil, previewMode == false {
Image("custom.macwindow.trianglebadge.exclamationmark")
Image(systemName: "exclamationmark.triangle")
} else if let image = currentAction.radialMenuImage {
image
}
Expand Down
4 changes: 2 additions & 2 deletions Loop/Window Management/WindowAction+Image.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ extension WindowAction {
var radialMenuImage: Image? {
switch direction {
case .hide:
Image("custom.rectangle.slash")
Image(systemName: "eye.slash")
case .minimize:
Image("custom.arrow.down.right.and.arrow.up.left.rectangle")
Image(systemName: "arrow.down.right.and.arrow.up.left")
default:
nil
}
Expand Down

0 comments on commit 2047c08

Please sign in to comment.