mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
- Fix Mode to oneway
- Add sources - Hide Updated label when LabelNew
This commit is contained in:
parent
bc47671129
commit
e3e0545c9d
2 changed files with 8 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue