Closed xabolcs closed 8 years ago
Branch updated with commit ec6ec039741cbf402b5bedaff7b284f79b08700a.
Hm, I tried to check those changes with the toggleCompatibility() feature, but when I flip the checkmark in the menu, I do not see the popupnotification in latest Nightly. Is that another issue we would have to fix beside that one?
You need an enabled incompatible addon which will be enabled / disabled when you toggle compatibility checks.
If there is no need to restart then no notification will pop up.
Hm, that isn't clear to me anymore while it makes sense for sure. Where are we doing this check? I had a look at toggleCompatibility but I wasn't able to find it there.
Sorry for pestering with those questions but it's a long time we did some updates for NTT. :S
No problem! :)
It's for the restartful addons. Here is the count()
function that counts the addons which requires a restart.
The result of the above callback is used to decide wether to do a restart or not.
It makes sense when the user's incompatible addons are all restartless. They get started instantly when the force compatibility toggles ... and no need for restart.
That result is parsed in toggleCompatibility()
, to do the real restart or not to do.
I see, so we do it via the PREF_FORCE_COMPAT observer notification. I think that will help me now to get this tested.
Sure. For example you need a simple count
like in the fallback ... or simple leave out the parsedData.restart
part. :)
Tested with DownThemAll and it works perfect. I also cannot see anything else which would need a fix. Lets get this merged.
Commit f08b18f doesn't have the commit message that you really wanted. :-1: But the one-click-squash-and-merge stuff is really cool! :+1:
Yeah, I somehow messed it up. sorry. I will pay more attention the next time. I also used it only once so far.
No problem, just wanted to note! :)
This is a fix for Issue #205.
Cc @whimboo