aboutsummaryrefslogtreecommitdiff
path: root/src/handlers/view.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/handlers/view.rs')
-rw-r--r--src/handlers/view.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/handlers/view.rs b/src/handlers/view.rs
index 87c4172..44e7e40 100644
--- a/src/handlers/view.rs
+++ b/src/handlers/view.rs
@@ -13,8 +13,8 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-use relm4::prelude::*;
use crate::components::header::HeaderAction;
+use relm4::prelude::*;
use crate::AppModel;
use wmap_renderer::StageType;
@@ -25,7 +25,9 @@ pub fn change_orientation(model: &mut AppModel) {
gtk::Orientation::Horizontal => gtk::Orientation::Vertical,
_ => gtk::Orientation::Horizontal,
};
- model.header.emit(HeaderAction::SetLayoutOrientation(model.orientation));
+ model
+ .header
+ .emit(HeaderAction::SetLayoutOrientation(model.orientation));
}
/// Updates the selected stage type from dropdown selection.
@@ -37,5 +39,7 @@ pub fn stage_type_selected(model: &mut AppModel, stage_type: StageType) {
/// Updates the selected stage type from dropdown selection.
pub fn change_horizontal_layout(model: &mut AppModel, is_enabled: bool) {
model.horizontal_layout_enabled = is_enabled;
- model.header.emit(HeaderAction::SetHorizontalLayoutEnabled(is_enabled));
+ model
+ .header
+ .emit(HeaderAction::SetHorizontalLayoutEnabled(is_enabled));
}