[banshee: 50/61] [Source] Don't show duration in status bar if zero
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee: 50/61] [Source] Don't show duration in status bar if zero
- Date: Tue, 3 Nov 2009 06:32:02 +0000 (UTC)
commit 3ae7fe39d077cea4dbee395bb8ccbc7c4f18d790
Author: Gabriel Burt <gabriel burt gmail com>
Date: Fri Oct 16 15:39:00 2009 -0700
[Source] Don't show duration in status bar if zero
.../Banshee.Services/Banshee.Sources/Source.cs | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Sources/Source.cs b/src/Core/Banshee.Services/Banshee.Sources/Source.cs
index 56d1bc8..d92b8cc 100644
--- a/src/Core/Banshee.Services/Banshee.Sources/Source.cs
+++ b/src/Core/Banshee.Services/Banshee.Sources/Source.cs
@@ -761,8 +761,11 @@ namespace Banshee.Sources
builder.AppendFormat (Catalog.GetPluralString ("{0} item", "{0} items", count), count);
if (this is IDurationAggregator && StatusFormatsCount > 0) {
- builder.Append (STATUS_BAR_SEPARATOR);
- duration_status_formatters[CurrentStatusFormat] (builder, ((IDurationAggregator)this).Duration);
+ var duration = ((IDurationAggregator)this).Duration;
+ if (duration > TimeSpan.Zero) {
+ builder.Append (STATUS_BAR_SEPARATOR);
+ duration_status_formatters[CurrentStatusFormat] (builder, ((IDurationAggregator)this).Duration);
+ }
}
if (this is IFileSizeAggregator) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]