Skip to content

Commit

Permalink
Merge pull request #234 from torikulhabib/master
Browse files Browse the repository at this point in the history
str
  • Loading branch information
torikulhabib authored Apr 15, 2023
2 parents 19fdb82 + 69f5789 commit 7737227
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions data/com.github.gabutakut.gabutdm.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<release version="2.1.5" date="2023-4-16">
<description>
<p>Feature TrayIcon</p>
<p>Fix Clipboard</p>
<p>Simple code</p>
</description>
</release>
Expand Down
4 changes: 2 additions & 2 deletions src/GabutWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -871,9 +871,9 @@ namespace Gabut {
private void update_info () {
var infol = aria_label_info ();
var activedmapp = int64.parse (infol.fetch (2));
labelall.label = @"Active: $(activedmapp) Download: $(GLib.format_size (activedmapp > 0? int64.parse (infol.fetch (1)) : 0)) Upload: $(GLib.format_size (activedmapp > 0? int64.parse (infol.fetch (6)) : 0))";
labelall.label = "Active: %i Download: %s Upload: %s".printf ((int)activedmapp, GLib.format_size (activedmapp > 0? int64.parse (infol.fetch (1)) : 0), GLib.format_size (activedmapp > 0? int64.parse (infol.fetch (6)) : 0));
if (menulabel == 2 && indmenu) {
dbusindicator.updateLabel = @" $(GLib.format_size (activedmapp > 0? int64.parse (infol.fetch (6)) + int64.parse (infol.fetch (1)) : 0))";
dbusindicator.updateLabel = " %s".printf (GLib.format_size (activedmapp > 0? int64.parse (infol.fetch (6)) + int64.parse (infol.fetch (1)) : 0));
dbusindicator.x_ayatana_new_label (dbusindicator.updateLabel, "");
}
}
Expand Down

0 comments on commit 7737227

Please sign in to comment.