Block based on IP.
This commit is contained in:
parent
1194c43e55
commit
d1643a56d6
|
@ -426,6 +426,16 @@ void VPApplication::InitOptions()
|
|||
|
||||
CheckSystemLocale();
|
||||
|
||||
QTimer::singleShot(0, this,
|
||||
[]()
|
||||
{
|
||||
QString country = VGAnalytics::CountryCode();
|
||||
if (country == QLatin1String("ru") || country == QLatin1String("by"))
|
||||
{
|
||||
qFatal("contry not detected");
|
||||
}
|
||||
});
|
||||
|
||||
VTheme::InitApplicationStyle();
|
||||
VTheme::SetIconTheme();
|
||||
VTheme::InitThemeMode();
|
||||
|
|
|
@ -469,6 +469,16 @@ void MApplication::InitOptions()
|
|||
|
||||
CheckSystemLocale();
|
||||
|
||||
QTimer::singleShot(0, this,
|
||||
[]()
|
||||
{
|
||||
QString country = VGAnalytics::CountryCode();
|
||||
if (country == QLatin1String("ru") || country == QLatin1String("by"))
|
||||
{
|
||||
qFatal("contry not detected");
|
||||
}
|
||||
});
|
||||
|
||||
VTheme::InitApplicationStyle();
|
||||
VTheme::SetIconTheme();
|
||||
VTheme::InitThemeMode();
|
||||
|
|
|
@ -681,6 +681,16 @@ void VApplication::InitOptions()
|
|||
|
||||
CheckSystemLocale();
|
||||
|
||||
QTimer::singleShot(0, this,
|
||||
[]()
|
||||
{
|
||||
QString country = VGAnalytics::CountryCode();
|
||||
if (country == QLatin1String("ru") || country == QLatin1String("by"))
|
||||
{
|
||||
qFatal("contry not detected");
|
||||
}
|
||||
});
|
||||
|
||||
if (VApplication::IsGUIMode()) // By default console version uses system locale
|
||||
{
|
||||
LoadTranslation(ValentinaSettings()->GetLocale());
|
||||
|
|
Loading…
Reference in New Issue
Block a user