mirror of https://github.com/procxx/kepka.git
				
				
				
			Move add exceptions button to the top.
This commit is contained in:
		
							parent
							
								
									570ab663b7
								
							
						
					
					
						commit
						2379812890
					
				|  | @ -545,6 +545,11 @@ void EditFilterBox( | ||||||
| 	AddSkip(content); | 	AddSkip(content); | ||||||
| 	AddSubsectionTitle(content, tr::lng_filters_include()); | 	AddSubsectionTitle(content, tr::lng_filters_include()); | ||||||
| 
 | 
 | ||||||
|  | 	const auto includeAdd = AddButton( | ||||||
|  | 		content, | ||||||
|  | 		tr::lng_filters_add_chats() | Ui::Text::ToUpper(), | ||||||
|  | 		st::settingsUpdate); | ||||||
|  | 
 | ||||||
| 	const auto include = SetupChatsPreview( | 	const auto include = SetupChatsPreview( | ||||||
| 		content, | 		content, | ||||||
| 		data, | 		data, | ||||||
|  | @ -552,11 +557,6 @@ void EditFilterBox( | ||||||
| 		kTypes, | 		kTypes, | ||||||
| 		&Data::ChatFilter::always); | 		&Data::ChatFilter::always); | ||||||
| 
 | 
 | ||||||
| 	const auto includeAdd = AddButton( |  | ||||||
| 		content, |  | ||||||
| 		tr::lng_filters_add_chats() | Ui::Text::ToUpper(), |  | ||||||
| 		st::settingsUpdate); |  | ||||||
| 
 |  | ||||||
| 	AddSkip(content); | 	AddSkip(content); | ||||||
| 	content->add( | 	content->add( | ||||||
| 		object_ptr<Ui::FlatLabel>( | 		object_ptr<Ui::FlatLabel>( | ||||||
|  | @ -569,6 +569,11 @@ void EditFilterBox( | ||||||
| 
 | 
 | ||||||
| 	AddSubsectionTitle(content, tr::lng_filters_exclude()); | 	AddSubsectionTitle(content, tr::lng_filters_exclude()); | ||||||
| 
 | 
 | ||||||
|  | 	const auto excludeAdd = AddButton( | ||||||
|  | 		content, | ||||||
|  | 		tr::lng_filters_remove_chats() | Ui::Text::ToUpper(), | ||||||
|  | 		st::settingsUpdate); | ||||||
|  | 
 | ||||||
| 	const auto exclude = SetupChatsPreview( | 	const auto exclude = SetupChatsPreview( | ||||||
| 		content, | 		content, | ||||||
| 		data, | 		data, | ||||||
|  | @ -576,11 +581,6 @@ void EditFilterBox( | ||||||
| 		kExcludeTypes, | 		kExcludeTypes, | ||||||
| 		&Data::ChatFilter::never); | 		&Data::ChatFilter::never); | ||||||
| 
 | 
 | ||||||
| 	const auto excludeAdd = AddButton( |  | ||||||
| 		content, |  | ||||||
| 		tr::lng_filters_remove_chats() | Ui::Text::ToUpper(), |  | ||||||
| 		st::settingsUpdate); |  | ||||||
| 
 |  | ||||||
| 	AddSkip(content); | 	AddSkip(content); | ||||||
| 	content->add( | 	content->add( | ||||||
| 		object_ptr<Ui::FlatLabel>( | 		object_ptr<Ui::FlatLabel>( | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue