diff options
author | Aylur <[email protected]> | 2024-12-05 21:29:17 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-05 21:29:17 +0100 |
commit | c9f8f984a38df29fd4c265b77c8eedddc96b3ad1 (patch) | |
tree | 8df9da93d0d7ed15a3a2b851344d6ee78e3e372d /lib | |
parent | 990f031507b21f8a18c0710016fb76b1f260afe8 (diff) | |
parent | 92ed24778937b454c5a2c37e664cdd5c865820dc (diff) |
Merge pull request #159 from muni-corn/network-enum-fix
fix(network): specify values for State enum
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/network.vala | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/network/network.vala b/lib/network/network.vala index 96e19c8..b5a6c61 100644 --- a/lib/network/network.vala +++ b/lib/network/network.vala @@ -104,14 +104,14 @@ public enum AstalNetwork.Primary { // alias for NM.State public enum AstalNetwork.State { - UNKNOWN, - ASLEEP, - DISCONNECTED, - DISCONNECTING, - CONNECTING, - CONNECTED_LOCAL, - CONNECTED_SITE, - CONNECTED_GLOBAL; + UNKNOWN = 0, + ASLEEP = 10, + DISCONNECTED = 20, + DISCONNECTING = 30, + CONNECTING = 40, + CONNECTED_LOCAL = 50, + CONNECTED_SITE = 60, + CONNECTED_GLOBAL = 70; public string to_string() { switch (this) { |