mirror of https://github.com/procxx/kepka.git
				
				
				
			Fix tabbed selector section / panel exchange.
This commit is contained in:
		
							parent
							
								
									f4d9618487
								
							
						
					
					
						commit
						6d0dbebda9
					
				|  | @ -3771,17 +3771,18 @@ void HistoryWidget::pushTabbedSelectorToThirdSection() { | ||||||
| 		&st::historyRecordVoiceFgActive, | 		&st::historyRecordVoiceFgActive, | ||||||
| 		&st::historyRecordVoiceRippleBgActive); | 		&st::historyRecordVoiceRippleBgActive); | ||||||
| 	auto destroyingPanel = std::move(_tabbedPanel); | 	auto destroyingPanel = std::move(_tabbedPanel); | ||||||
| 	controller()->resizeForThirdSection(); |  | ||||||
| 	auto memento = ChatHelpers::TabbedMemento( | 	auto memento = ChatHelpers::TabbedMemento( | ||||||
| 		destroyingPanel->takeSelector(), | 		destroyingPanel->takeSelector(), | ||||||
| 		base::lambda_guarded(this, [this]( | 		base::lambda_guarded(this, [this]( | ||||||
| 				object_ptr<TabbedSelector> selector) { | 				object_ptr<TabbedSelector> selector) { | ||||||
| 			returnTabbedSelector(std::move(selector)); | 			returnTabbedSelector(std::move(selector)); | ||||||
| 		})); | 		})); | ||||||
|  | 	controller()->resizeForThirdSection(); | ||||||
| 	controller()->showSection( | 	controller()->showSection( | ||||||
| 		std::move(memento), | 		std::move(memento), | ||||||
| 		anim::type::instant, | 		anim::type::instant, | ||||||
| 		anim::activation::background); | 		anim::activation::background); | ||||||
|  | 	destroyingPanel.destroy(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void HistoryWidget::pushInfoToThirdSection() { | void HistoryWidget::pushInfoToThirdSection() { | ||||||
|  | @ -3819,6 +3820,7 @@ void HistoryWidget::returnTabbedSelector( | ||||||
| 	_tabbedSelectorToggle->installEventFilter(_tabbedPanel); | 	_tabbedSelectorToggle->installEventFilter(_tabbedPanel); | ||||||
| 	_tabbedSelectorToggle->setColorOverrides(nullptr, nullptr, nullptr); | 	_tabbedSelectorToggle->setColorOverrides(nullptr, nullptr, nullptr); | ||||||
| 	_tabbedSelectorToggleTooltipShown = false; | 	_tabbedSelectorToggleTooltipShown = false; | ||||||
|  | 	moveFieldControls(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void HistoryWidget::recountChatWidth() { | void HistoryWidget::recountChatWidth() { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue