Skip to content

Commit

Permalink
Removed undoManager (was only used at one place)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Jan 19, 2025
1 parent 5f6d8e6 commit bc0c2f7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion GUI/Dialogs/Inspector/MyFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
// See https://www.gnu.org for license information
// -----------------------------------------------------------------------------

@MainActor
class MyFormatter: Formatter {

var radix = 0 { didSet { updateFormatString() } }
Expand Down
3 changes: 1 addition & 2 deletions GUI/Dialogs/Media/DiskExporter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,9 @@ extension DiskExporter: NSFilePromiseProviderDelegate {
return name
}

@MainActor
func filePromiseProvider(_ filePromiseProvider: NSFilePromiseProvider, writePromiseTo url: URL, completionHandler: @escaping (Error?) -> Void) {

export(url: url)
Task { @MainActor in export(url: url) }
completionHandler(nil)
}
}
3 changes: 0 additions & 3 deletions GUI/MyController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,6 @@ class MyController: NSWindowController, MessageReceiver {

extension MyController {

// Provides the undo manager
override open var undoManager: UndoManager? { return metal.undoManager }

// Indicates if the emulator needs saving
var needsSaving: Bool {
get {
Expand Down
4 changes: 0 additions & 4 deletions GUI/MyControllerMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -488,10 +488,6 @@ extension MyController: NSMenuItemValidation {
@IBAction
func toggleStatusBarAction(_ sender: Any!) {

undoManager?.registerUndo(withTarget: self) { targetSelf in
targetSelf.toggleStatusBarAction(sender)
}

showStatusBar(!statusBar)
}

Expand Down

0 comments on commit bc0c2f7

Please sign in to comment.