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