Merge pull request #1628 from carlosV2/master

This commit is contained in:
Alex 2022-07-17 18:15:23 +02:00 committed by GitHub
commit 56a45e962b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,9 @@ auto Language::update() -> void {
}
auto Language::set_current_layout(std::string current_layout) -> void {
label_.get_style_context()->remove_class(layout_.short_name);
layout_ = layouts_map_[current_layout];
label_.get_style_context()->add_class(layout_.short_name);
}
auto Language::init_layouts_map(const std::vector<std::string>& used_layouts) -> void {