13
13
using System . Runtime . Versioning ;
14
14
using System . Threading . Tasks ;
15
15
using System . Windows . Forms ;
16
+ using Analogy . LogViewer . Template . IAnalogy ;
16
17
17
18
namespace Analogy . Managers
18
19
{
@@ -95,15 +96,13 @@ public bool NewVersionExist
95
96
}
96
97
}
97
98
98
- public AnalogyDownloadInformation UpdateInformation
99
+ public ( string title , string DownloadURL ) DownloadInformation
99
100
{
100
101
get
101
102
{
102
- string tag = "" ;
103
103
string downloadTag = "" ;
104
104
if ( ! string . IsNullOrEmpty ( Settings . LastVersionChecked ? . TagName ) )
105
105
{
106
- tag = $ "tag/{ Settings . LastVersionChecked ? . TagName } ";
107
106
downloadTag = $ "https://github.com/Analogy-LogViewer/Analogy.LogViewer/releases/download/{ Settings . LastVersionChecked ? . TagName } ";
108
107
var downloadAsset = GetDownloadAsset ( ) ;
109
108
if ( downloadAsset != null )
@@ -112,13 +111,7 @@ public AnalogyDownloadInformation UpdateInformation
112
111
}
113
112
114
113
}
115
- AnalogyDownloadInformation updateInfo = new AnalogyDownloadInformation
116
- ( "Analogy Log viewer" , NewVersionExist ,
117
- downloadTag ,
118
- $ "https://github.com/Analogy-LogViewer/Analogy.LogViewer/releases/{ tag } ",
119
- NewestVersion . ToString ( ) , CurrentVersionNumber , false ,
120
- Interfaces . UpdateMode . Normal , "" , "" , "" ) ;
121
- return updateInfo ;
114
+ return ( "Analogy Log viewer" , downloadTag ) ;
122
115
}
123
116
}
124
117
0 commit comments