Use a single action for toggling the language (#21331)

Follow-up of https://github.com/zed-industries/zed/pull/21299

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov authored and GitHub committed 2024-11-29 16:02:57 +02:00
1 parent a0d6b95cc3
commit 856170312b
1 file changed
+1 -3
@@ -4,9 +4,7 @@ use language::LanguageName;
use ui::{Button, ButtonCommon, Clickable, FluentBuilder, LabelSize, Tooltip};
use workspace::{item::ItemHandle, StatusItemView, Workspace};
use crate::LanguageSelector;
gpui::actions!(language_selector, [Toggle]);
use crate::{LanguageSelector, Toggle};
pub struct ActiveBufferLanguage {
active_language: Option<Option<LanguageName>>,