Skip to content

Commit e3e0545

Browse files
committed
- Fix Mode to oneway
- Add sources - Hide Updated label when LabelNew
1 parent bc47671 commit e3e0545

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Flow.Launcher/SettingWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,7 @@
16251625
<Run
16261626
FontSize="12"
16271627
Foreground="{DynamicResource Color04B}"
1628-
Text="{Binding Description}" />
1628+
Text="{Binding Description, Mode=OneWay}" />
16291629
</TextBlock>
16301630

16311631
</StackPanel>
@@ -1687,7 +1687,7 @@
16871687
Foreground="{DynamicResource Color04B}"
16881688
NavigateUri="{Binding Website}"
16891689
RequestNavigate="OnRequestNavigate">
1690-
<Run FontSize="12" Text="{Binding Author}" />
1690+
<Run FontSize="12" Text="{Binding Author, Mode=OneWay}" />
16911691
</Hyperlink>
16921692
</TextBlock>
16931693
</StackPanel>

Flow.Launcher/ViewModel/PluginStoreItemViewModel.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ public PluginStoreItemViewModel(UserPlugin plugin)
1616

1717
public string Name => _plugin.Name;
1818
public string Description => _plugin.Description;
19+
public string IcoPath => _plugin.IcoPath;
1920
public string Author => _plugin.Author;
21+
public string Website => _plugin.Website;
22+
public string Language => _plugin.Language;
23+
public string UrlDownload => _plugin.UrlDownload;
24+
public string UrlSourceCode => _plugin.UrlSourceCode;
2025
public string Version => _plugin.Version;
2126

22-
2327
public bool LabelNew => _plugin.LatestReleaseDate-DateTime.Now < TimeSpan.FromDays(7);
2428
public bool LabelInstalled => PluginManager.GetPluginForId(_plugin.ID) != null;
25-
public bool LabelUpdated => _plugin.DateAdded -DateTime.Now < TimeSpan.FromDays(7);
29+
public bool LabelUpdated => _plugin.DateAdded -DateTime.Now < TimeSpan.FromDays(5) && !LabelNew;
2630
}
2731
}

0 commit comments

Comments
 (0)