Skip to content

Commit 361df7d

Browse files
XTorLukas0x5bfa
andauthored
Update
Co-authored-by: 0x5BFA <[email protected]>
1 parent e89b2bb commit 361df7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.App/Helpers/Application/AppLanguageHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public static bool UpdateTitleBar(Window window)
130130
var exStyle = PInvoke.GetWindowLongPtr(hwnd, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE);
131131

132132
exStyle = PreferredCulture.TextInfo.IsRightToLeft
133-
? new IntPtr((uint)exStyle | (uint)WINDOW_EX_STYLE.WS_EX_LAYOUTRTL) // Set RTL layout
134-
: new IntPtr((uint)exStyle.ToInt64() & ~(uint)WINDOW_EX_STYLE.WS_EX_LAYOUTRTL); // Set LTR layout
133+
? new((uint)exStyle | (uint)WINDOW_EX_STYLE.WS_EX_LAYOUTRTL) // Set RTL layout
134+
: new((uint)exStyle.ToInt64() & ~(uint)WINDOW_EX_STYLE.WS_EX_LAYOUTRTL); // Set LTR layout
135135

136136
if (PInvoke.SetWindowLongPtr(hwnd, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE, exStyle) == 0)
137137
return false;

0 commit comments

Comments
 (0)