mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +07:00
OPENIDE #123 Don't show dialog with statistics after accepting the user agreement
This commit is contained in:
@@ -72,12 +72,8 @@ fun showEndUserAndDataSharingAgreements(agreement: EndUserAgreement.Document) {
|
|||||||
isEnabled = false,
|
isEnabled = false,
|
||||||
action = { dialogWrapper ->
|
action = { dialogWrapper ->
|
||||||
EndUserAgreement.setAccepted(agreement)
|
EndUserAgreement.setAccepted(agreement)
|
||||||
if (ConsentOptions.needToShowUsageStatsConsent()) {
|
acceptOpenIdeDataSharingAgreement()
|
||||||
configureDataSharing(bundle)
|
dialogWrapper.close(DialogWrapper.OK_EXIT_CODE)
|
||||||
}
|
|
||||||
else {
|
|
||||||
dialogWrapper.close(DialogWrapper.OK_EXIT_CODE)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ package com.intellij.ide.gdpr
|
|||||||
import com.intellij.ui.AppUIUtil
|
import com.intellij.ui.AppUIUtil
|
||||||
|
|
||||||
fun acceptOpenIdeDataSharingAgreement() {
|
fun acceptOpenIdeDataSharingAgreement() {
|
||||||
val dataSharingConsent = ConsentOptions.getInstance().getConsents(ConsentOptions.condUsageStatsConsent()).first[0]
|
if (ConsentOptions.needToShowUsageStatsConsent()) {
|
||||||
AppUIUtil.saveConsents(listOf(dataSharingConsent.derive(true)))
|
val dataSharingConsent = ConsentOptions.getInstance().getConsents(ConsentOptions.condUsageStatsConsent()).first[0]
|
||||||
|
AppUIUtil.saveConsents(listOf(dataSharingConsent.derive(true)))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user