fix: fix press 'Enable Overclocking' will panic (#320)

This commit is contained in:
Mag Mell 2024-05-09 13:51:25 +08:00 committed by GitHub
parent 0dce4b395e
commit 974e6ff442
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -762,8 +762,10 @@ impl App {
.transient_for(&self.window)
.build();
dialog.titlebar().unwrap().set_margin_start(15);
dialog.titlebar().unwrap().set_margin_end(15);
if let Some(bar) = dialog.titlebar() {
bar.set_margin_start(15);
bar.set_margin_end(15);
}
dialog
}