fix: reload non-stats-based info in the UI when the profile changes

This commit is contained in:
Ilya Zlobintsev 2024-12-26 12:37:36 +02:00
parent 21df725c42
commit 4fe3c9882e

View File

@ -2,6 +2,8 @@ mod new_profile_dialog;
mod profile_row;
pub mod profile_rule_window;
use crate::app::APP_BROKER;
use super::{AppMsg, DebugSnapshot, DisableOverdrive, DumpVBios, ResetConfig, ShowGraphsWindow};
use glib::clone;
use gtk::prelude::*;
@ -301,6 +303,8 @@ impl Header {
}
debug!("setting new profiles info: {profiles_info:?}");
APP_BROKER.send(AppMsg::ReloadData { full: false });
let mut profiles = self.profile_selector.guard();
profiles.clear();