mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[macos] debug rtf
This commit is contained in:
@ -51,8 +51,14 @@ static BOOL uiLayoutDirectionRTL = NO;
|
||||
|
||||
// bool l = [NSLocale characterDirectionForLanguage:[ASCLinguist appLanguageCode]] == NSLocaleLanguageDirectionRightToLeft;
|
||||
NSString * direction = [[NSUserDefaults standardUserDefaults] objectForKey:ASCUserUILayoutDirection];
|
||||
if ( direction != nil )
|
||||
if ( direction != nil ) {
|
||||
uiLayoutDirectionRTL = [direction isEqualToString:@"rtl"];
|
||||
|
||||
if ( uiLayoutDirectionRTL ) {
|
||||
// [[NSUserDefaults standardUserDefaults] setObject:@"YES" forKey:@"AppleTextDirection"];
|
||||
// [[NSUserDefaults standardUserDefaults] setObject:@"YES" forKey:@"NSForceRightToLeftWritingDirection"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+ (NSString *)appLanguageCode {
|
||||
|
||||
Reference in New Issue
Block a user