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