summaryrefslogtreecommitdiff
path: root/tikzit/src/osx/PropertyInspectorController.m
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/osx/PropertyInspectorController.m')
-rw-r--r--tikzit/src/osx/PropertyInspectorController.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/tikzit/src/osx/PropertyInspectorController.m b/tikzit/src/osx/PropertyInspectorController.m
index 981f746..039a30f 100644
--- a/tikzit/src/osx/PropertyInspectorController.m
+++ b/tikzit/src/osx/PropertyInspectorController.m
@@ -56,7 +56,12 @@
[self setTargetAnchorNames: [[NSMutableArray alloc] initWithArray:[@"north south west east" componentsSeparatedByString:@" "]]];
- [[self window] setLevel:NSNormalWindowLevel];
+ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"net.sourceforge.tikzit.inspectorsontop"] == YES) {
+ [[self window] setLevel:NSFloatingWindowLevel];
+ } else {
+ [[self window] setLevel:NSNormalWindowLevel];
+ }
+
[self showWindow:self];
return self;
}