Browse Source

Add logging to presentationOptions

Tobias Hieta 8 years ago
parent
commit
a02ef771fa
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/utils/osx/OSXUtils.mm

+ 5 - 1
src/utils/osx/OSXUtils.mm

@@ -1,4 +1,5 @@
 #include "OSXUtils.h"
+#include "QsLog.h"
 #import <Cocoa/Cocoa.h>
 
 /////////////////////////////////////////////////////////////////////////////////////////
@@ -22,13 +23,16 @@ unsigned long OSXUtils::GetPresentationOptionsForFullscreen(bool hideMenuAndDock
 /////////////////////////////////////////////////////////////////////////////////////////
 void OSXUtils::SetPresentationOptions(unsigned long flags)
 {
+  QLOG_DEBUG() << "Setting presentationOptions =" << flags;
   [[NSApplication sharedApplication] setPresentationOptions:flags];
 }
 
 /////////////////////////////////////////////////////////////////////////////////////////
 unsigned long OSXUtils::GetPresentationOptions()
 {
-  return [[NSApplication sharedApplication] presentationOptions];
+  unsigned long options = [[NSApplication sharedApplication] presentationOptions];
+  QLOG_DEBUG() << "Getting presentationOptions =" << options;
+  return options;
 }
 
 /////////////////////////////////////////////////////////////////////////////////////////