mirror of https://github.com/procxx/kepka.git
				
				
				
			Fix render bug in single column layout.
This commit is contained in:
		
							parent
							
								
									0a1165dac9
								
							
						
					
					
						commit
						675499df4d
					
				| 
						 | 
					@ -439,11 +439,16 @@ void HistoryTopBarWidget::updateControlsGeometry() {
 | 
				
			||||||
	updateMembersShowArea();
 | 
						updateMembersShowArea();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void HistoryTopBarWidget::finishAnimating() {
 | 
				
			||||||
 | 
						_selectedShown.finish();
 | 
				
			||||||
 | 
						updateControlsVisibility();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void HistoryTopBarWidget::setAnimationMode(bool enabled) {
 | 
					void HistoryTopBarWidget::setAnimationMode(bool enabled) {
 | 
				
			||||||
	if (_animationMode != enabled) {
 | 
						if (_animationMode != enabled) {
 | 
				
			||||||
		_animationMode = enabled;
 | 
							_animationMode = enabled;
 | 
				
			||||||
		setAttribute(Qt::WA_OpaquePaintEvent, !_animationMode);
 | 
							setAttribute(Qt::WA_OpaquePaintEvent, !_animationMode);
 | 
				
			||||||
		_selectedShown.finish();
 | 
							finishAnimating();
 | 
				
			||||||
		updateControlsVisibility();
 | 
							updateControlsVisibility();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -48,6 +48,7 @@ public:
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	void updateControlsVisibility();
 | 
						void updateControlsVisibility();
 | 
				
			||||||
 | 
						void finishAnimating();
 | 
				
			||||||
	void showSelected(SelectedState state);
 | 
						void showSelected(SelectedState state);
 | 
				
			||||||
	rpl::producer<bool> membersShowAreaActive() const {
 | 
						rpl::producer<bool> membersShowAreaActive() const {
 | 
				
			||||||
		return _membersShowAreaActive.events();
 | 
							return _membersShowAreaActive.events();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3118,7 +3118,7 @@ void HistoryWidget::showAnimated(
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	_cacheUnder = params.oldContentCache;
 | 
						_cacheUnder = params.oldContentCache;
 | 
				
			||||||
	show();
 | 
						show();
 | 
				
			||||||
	_topBar->updateControlsVisibility();
 | 
						_topBar->finishAnimating();
 | 
				
			||||||
	historyDownAnimationFinish();
 | 
						historyDownAnimationFinish();
 | 
				
			||||||
	unreadMentionsAnimationFinish();
 | 
						unreadMentionsAnimationFinish();
 | 
				
			||||||
	_topShadow->setVisible(params.withTopBarShadow ? false : true);
 | 
						_topShadow->setVisible(params.withTopBarShadow ? false : true);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -657,8 +657,8 @@ bool MainWidget::setForwardDraft(PeerId peerId, const SelectedItemSet &items) {
 | 
				
			||||||
	if (_history->peer() == peer) {
 | 
						if (_history->peer() == peer) {
 | 
				
			||||||
		_history->cancelReply();
 | 
							_history->cancelReply();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	Ui::showPeerHistory(peer, ShowAtUnreadMsgId);
 | 
					 | 
				
			||||||
	_history->onClearSelected();
 | 
						_history->onClearSelected();
 | 
				
			||||||
 | 
						Ui::showPeerHistory(peer, ShowAtUnreadMsgId);
 | 
				
			||||||
	return true;
 | 
						return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue