Skip to content

Commit

Permalink
[win-linux] small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplestStudio committed Nov 16, 2024
1 parent 3a57045 commit 1fd24e2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions win-linux/src/cascapplicationmanagerwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1289,10 +1289,8 @@ void CAscApplicationManagerWrapper::initializeApp()
EditorJSVariables::setVariable("localthemes", local_themes_array);

#if !defined(__OS_WIN_XP)
bool _is_rtl = CLangater::isRtlLanguage(CLangater::getCurrentLangCode());
if ( InputArgs::contains(L"--text-direction") ) {
_is_rtl = InputArgs::argument_value(L"--text-direction") == L"rtl";
}
bool _is_rtl = InputArgs::contains(L"--text-direction") ? InputArgs::argument_value(L"--text-direction") == L"rtl" :
CLangater::isRtlLanguage(CLangater::getCurrentLangCode());
#else
const bool _is_rtl = false;
#endif
Expand Down

0 comments on commit 1fd24e2

Please sign in to comment.