Skip to content

Commit

Permalink
Merge pull request nokyan#248 from garaevdi/logical_switch
Browse files Browse the repository at this point in the history
fix: Use `AdwSwitchRow` for logical CPUs switch
  • Loading branch information
nokyan authored Jun 8, 2024
2 parents 1784364 + da8583c commit 2011199
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions data/resources/ui/pages/cpu.ui
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,10 @@
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Options</property>
<child>
<object class="AdwActionRow">
<object class="AdwSwitchRow" id="logical_switch">
<property name="subtitle-selectable">true</property>
<property name="title" translatable="yes">Show Usages of Logical CPUs</property>
<child type="suffix">
<object class="GtkSwitch" id="logical_switch">
<accessibility>
<property name="label">Logical CPU switch</property>
</accessibility>
<property name="valign">3</property>
<property name="sensitive">false</property>
</object>
</child>
<property name="sensitive">false</property>
</object>
</child>
</object>
Expand Down
2 changes: 1 addition & 1 deletion src/ui/pages/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mod imp {
#[properties(wrapper_type = super::ResCPU)]
pub struct ResCPU {
#[template_child]
pub logical_switch: TemplateChild<gtk::Switch>,
pub logical_switch: TemplateChild<adw::SwitchRow>,
#[template_child]
pub stack: TemplateChild<gtk::Stack>,
#[template_child]
Expand Down

0 comments on commit 2011199

Please sign in to comment.