- Fix Mode to oneway

- Add sources
- Hide Updated label when LabelNew
This commit is contained in:
DB p 2022-10-08 18:27:17 +09:00
parent bc47671129
commit e3e0545c9d
2 changed files with 8 additions and 4 deletions

View file

@ -1625,7 +1625,7 @@
<Run
FontSize="12"
Foreground="{DynamicResource Color04B}"
Text="{Binding Description}" />
Text="{Binding Description, Mode=OneWay}" />
</TextBlock>
</StackPanel>
@ -1687,7 +1687,7 @@
Foreground="{DynamicResource Color04B}"
NavigateUri="{Binding Website}"
RequestNavigate="OnRequestNavigate">
<Run FontSize="12" Text="{Binding Author}" />
<Run FontSize="12" Text="{Binding Author, Mode=OneWay}" />
</Hyperlink>
</TextBlock>
</StackPanel>

View file

@ -16,12 +16,16 @@ namespace Flow.Launcher.ViewModel
public string Name => _plugin.Name;
public string Description => _plugin.Description;
public string IcoPath => _plugin.IcoPath;
public string Author => _plugin.Author;
public string Website => _plugin.Website;
public string Language => _plugin.Language;
public string UrlDownload => _plugin.UrlDownload;
public string UrlSourceCode => _plugin.UrlSourceCode;
public string Version => _plugin.Version;
public bool LabelNew => _plugin.LatestReleaseDate-DateTime.Now < TimeSpan.FromDays(7);
public bool LabelInstalled => PluginManager.GetPluginForId(_plugin.ID) != null;
public bool LabelUpdated => _plugin.DateAdded -DateTime.Now < TimeSpan.FromDays(7);
public bool LabelUpdated => _plugin.DateAdded -DateTime.Now < TimeSpan.FromDays(5) && !LabelNew;
}
}