Exemplo n.º 1
0
void Manager::onHideTimeout() {
	auto now = getms(true);
	for (auto i = _toastByHideTime.begin(); i != _toastByHideTime.cend();) {
		if (i.key() <= now) {
			auto toast = i.value();
			i = _toastByHideTime.erase(i);
			toast->hideAnimated();
		} else {
			break;
		}
	}
	startNextHideTimer();
}
Exemplo n.º 2
0
void Manager::onHideTimeout() {
	uint64 now = getms(true);
	for (auto i = _toastByHideTime.begin(); i != _toastByHideTime.cend();) {
		if (i.key() <= now) {
			Instance *toast = i.value();
			i = _toastByHideTime.erase(i);
			toast->fadeOut();
		} else {
			break;
		}
	}
	startNextHideTimer();
}