From cd74beddb1ab9054bfbfc074fb13b8f9ffe1456d Mon Sep 17 00:00:00 2001 From: Bernat Arlandis Date: Thu, 17 Sep 2020 14:30:17 +0200 Subject: [PATCH] Fix saving profile when ffbmeter is unsupported --- oversteer/gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oversteer/gui.py b/oversteer/gui.py index ec589b2..9c45469 100644 --- a/oversteer/gui.py +++ b/oversteer/gui.py @@ -236,7 +236,8 @@ def save_profile(self, profile_file): return profile = Profile(self.device.save_settings()) - profile.set_ffbmeter_overlay(self.ui.get_ffbmeter_overlay()) + if self.ui.get_ffbmeter_overlay() is not None: + profile.set_ffbmeter_overlay(self.ui.get_ffbmeter_overlay()) profile.set_wheel_range_overlay(self.ui.get_wheel_range_overlay()) profile.set_wheel_buttons(self.ui.get_wheel_buttons()) profile.set_overlay_window_pos(self.ui.get_overlay_window_pos())