Skip to content

Commit

Permalink
fix: remove taskfile, revert format change and warn-all
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshStrobl committed Jun 16, 2024
1 parent ba797b6 commit d9e2bde
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 19 deletions.
11 changes: 0 additions & 11 deletions Taskfile.yml

This file was deleted.

8 changes: 4 additions & 4 deletions src/panel/applets/status/PowerIndicator.vala
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public interface PowerProfilesDBus : Object {
public class PowerProfilesOption : Gtk.RadioButton {
public PowerProfilesOption(PowerProfilesDBus profiles_proxy, string profile_name, string display_name) {
label = display_name;

this.toggled.connect(() => {
if (this.get_active()) {
profiles_proxy.active_profile = profile_name;
Expand Down Expand Up @@ -180,7 +180,7 @@ public class PowerProfilesSelector : Gtk.Box {

profiles.add(profile_value.get_string());
}

// need at least two options for it to be meaningful
if (profiles.length < 2) return;

Expand Down Expand Up @@ -307,7 +307,7 @@ public class PowerIndicator : Gtk.Bin {
try {
profiles_proxy = Bus.get_proxy.end(res);

if (profiles_proxy.active_profile != null)
if (profiles_proxy.active_profile != null)
create_power_profiles_options();

} catch (Error e) {
Expand All @@ -334,7 +334,7 @@ public class PowerIndicator : Gtk.Bin {

public void update_labels(bool visible) {
this.label_visible = visible;

unowned BatteryIcon? icon = null;
var iter = HashTableIter<string,BatteryIcon?>(this.devices);
while (iter.next(null, out icon)) {
Expand Down
8 changes: 4 additions & 4 deletions src/panel/applets/status/StatusApplet.vala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class StatusSettings : Gtk.Grid {

[GtkChild]
private unowned Gtk.SpinButton? spinbutton_spacing;

[GtkChild]
private unowned Gtk.Switch? switch_show_battery_percentage;

Expand Down Expand Up @@ -87,14 +87,14 @@ public class StatusApplet : Budgie.Applet {
show_all();

power = new PowerIndicator();

gnome_settings = new Settings(GNOME_SETTINGS_SCHEMA);

power.update_labels(gnome_settings.get_boolean("show-battery-percentage"));
gnome_settings.changed["show-battery-percentage"].connect((key) => {
power.update_labels(gnome_settings.get_boolean("show-battery-percentage"));
});

widget.pack_start(power, false, false, 0);
/* Power shows itself - we dont control that */

Expand Down
1 change: 1 addition & 0 deletions src/plugin/panel/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ libpanelplugin_gir = gnome.generate_gir(
install: true,
extra_args: [
'--c-include=plugin.h',
'--warn-all',
]
)

Expand Down

0 comments on commit d9e2bde

Please sign in to comment.