mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
fix: confirm unsubscribe preference only works if disabled instead of enabled
This commit is contained in:
parent
53b720201e
commit
c7a587f509
@ -62,7 +62,7 @@ fun TextView.setupSubscriptionButton(
|
|||||||
updateUIStateAndNotifyObservers()
|
updateUIStateAndNotifyObservers()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!PreferenceHelper.getBoolean(PreferenceKeys.CONFIRM_UNSUBSCRIBE, false)) {
|
if (PreferenceHelper.getBoolean(PreferenceKeys.CONFIRM_UNSUBSCRIBE, false)) {
|
||||||
showUnsubscribeDialog(context, channelName) {
|
showUnsubscribeDialog(context, channelName) {
|
||||||
CoroutineScope(Dispatchers.Main).launch { unsubscribeAction() }
|
CoroutineScope(Dispatchers.Main).launch { unsubscribeAction() }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user