Skip to content

Commit

Permalink
Add sorting for QuickSettings (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Feb 3, 2024
1 parent 0fb4a14 commit cae197c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Indicator.vala
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public abstract class Wingpanel.Indicator : GLib.Object {
public const string NIGHT_LIGHT = "nightlight";
public const string PRIVACY = "privacy";
public const string ACCESSIBILITY = "a11y";
public const string QUICKSETTINGS = "quick-settings";

/**
* The unique name representing the indicator.
Expand Down
3 changes: 2 additions & 1 deletion src/Services/IndicatorSorter.vala
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public class Wingpanel.Services.IndicatorSorter : Object {
indicator_order[Indicator.SYNC] = 10;
indicator_order[Indicator.POWER] = 11;
indicator_order[Indicator.MESSAGES] = 12;
indicator_order[Indicator.SESSION] = 13;
indicator_order[Indicator.QUICKSETTINGS] = 13;
indicator_order[Indicator.SESSION] = 14;
}

public int compare_func (Wingpanel.Widgets.IndicatorEntry? a, Wingpanel.Widgets.IndicatorEntry? b) {
Expand Down

0 comments on commit cae197c

Please sign in to comment.