Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sorting for QuickSettings #516

Merged
merged 1 commit into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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