Cleanup atom_api_system_preferences_mac.mm
This commit is contained in:
parent
322fb97d8d
commit
1e4c83eb93
1 changed files with 2 additions and 3 deletions
|
@ -11,7 +11,6 @@
|
||||||
#include "atom/browser/mac/dict_util.h"
|
#include "atom/browser/mac/dict_util.h"
|
||||||
#include "atom/common/native_mate_converters/value_converter.h"
|
#include "atom/common/native_mate_converters/value_converter.h"
|
||||||
#include "atom/common/native_mate_converters/gurl_converter.h"
|
#include "atom/common/native_mate_converters/gurl_converter.h"
|
||||||
#import "base/mac/sdk_forward_declarations.h"
|
|
||||||
#include "base/strings/sys_string_conversions.h"
|
#include "base/strings/sys_string_conversions.h"
|
||||||
#include "base/values.h"
|
#include "base/values.h"
|
||||||
#include "net/base/mac/url_conversions.h"
|
#include "net/base/mac/url_conversions.h"
|
||||||
|
@ -125,8 +124,8 @@ bool SystemPreferences::IsDarkMode() {
|
||||||
|
|
||||||
bool SystemPreferences::IsSwipeTrackingFromScrollEventsEnabled() {
|
bool SystemPreferences::IsSwipeTrackingFromScrollEventsEnabled() {
|
||||||
SEL selector = @selector(isSwipeTrackingFromScrollEventsEnabled);
|
SEL selector = @selector(isSwipeTrackingFromScrollEventsEnabled);
|
||||||
return [NSEvent respondsToSelector:selector]
|
return [NSEvent respondsToSelector:selector] &&
|
||||||
&& [NSEvent performSelector:selector];
|
[NSEvent performSelector:selector];
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace api
|
} // namespace api
|
||||||
|
|
Loading…
Reference in a new issue