Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Feb 7, 2024
1 parent 3c49731 commit de37fc3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Core/UpdateManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,12 @@ public class AppCenterCore.UpdateManager : Object {
if (!AppCenter.App.settings.get_boolean ("automatic-updates")) {
var application = Application.get_default ();
if (count > 0) {
string title = ngettext ("Update Available", "Updates Available", count);
string body = ngettext ("%u update is available for your system", "%u updates are available for your system", count).printf (count);
var title = ngettext ("Update Available", "Updates Available", count);
var body = ngettext (
"%u update is available for your system",
"%u updates are available for your system",
count
).printf (count);

var notification = new Notification (title);
notification.set_body (body);
Expand Down

0 comments on commit de37fc3

Please sign in to comment.