[banshee/1.5.1-fixes: 10/56] [Source] Don't show duration in status bar if zero
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/1.5.1-fixes: 10/56] [Source] Don't show duration in status bar if zero
- Date: Mon, 22 Mar 2010 18:04:55 +0000 (UTC)
commit 0854eb05df3698c94be093e136db71e1b4475999
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]