MacGui: disable NSWindow tabbing support.
authorDamiano Galassi <damiog@gmail.com>
Fri, 15 Feb 2019 08:25:26 +0000 (09:25 +0100)
committerDamiano Galassi <damiog@gmail.com>
Fri, 15 Feb 2019 08:25:26 +0000 (09:25 +0100)
macosx/HBController.m
macosx/HBQueueController.m

index 2b64afaaa74b151f97336dab06c127c585f6e685..af4d88b452647b1070486fd9eef3dd6cb4f6c381 100644 (file)
@@ -211,6 +211,11 @@ static void *HBControllerQueueCoreContext = &HBControllerQueueCoreContext;
 
 - (void)windowDidLoad
 {
+    if (@available (macOS 10.12, *))
+    {
+        self.window.tabbingMode = NSWindowTabbingModeDisallowed;
+    }
+
     [self enableUI:NO];
 
     // Bottom
index dfe82440983ecace86ac596e81e4338efb9009bc..f42067f6c84f2d7aefc1721aa7456e998e8ebedd 100644 (file)
@@ -112,6 +112,11 @@ static void *HBControllerQueueCoreContext = &HBControllerQueueCoreContext;
 
 - (void)windowDidLoad
 {
+    if (@available (macOS 10.12, *))
+    {
+        self.window.tabbingMode = NSWindowTabbingModeDisallowed;
+    }
+
     // lets setup our queue list table view for drag and drop here
     [self.tableView registerForDraggedTypes:@[DragDropSimplePboardType]];
     [self.tableView setDraggingSourceOperationMask:NSDragOperationEvery forLocal:YES];