mirror of
https://github.com/AAndyProgram/SCrawler.git
synced 2026-03-14 15:52:18 +00:00
2023.12.21.0
Update 'new log data' notification Feed: improve last session loading
This commit is contained in:
@@ -318,7 +318,7 @@ Namespace DownloadObjects
|
|||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
End Function
|
End Function
|
||||||
If Not GetLast Then __getFiles.Invoke
|
__getFiles.Invoke
|
||||||
If Not GetLast And GetFilesOnly And Not fList.ListExists Then
|
If Not GetLast And GetFilesOnly And Not fList.ListExists Then
|
||||||
MsgBoxE({"No session files found", "Get session files"}, vbExclamation)
|
MsgBoxE({"No session files found", "Get session files"}, vbExclamation)
|
||||||
ElseIf Not GetLast AndAlso fList.ListExists Then
|
ElseIf Not GetLast AndAlso fList.ListExists Then
|
||||||
@@ -352,18 +352,24 @@ Namespace DownloadObjects
|
|||||||
MsgBoxE(m)
|
MsgBoxE(m)
|
||||||
End If
|
End If
|
||||||
End Using
|
End Using
|
||||||
ElseIf Downloader.FilesSessionActual(False).Exists OrElse __getFiles.Invoke Then
|
ElseIf Downloader.FilesSessionActual(False).Exists OrElse fList.ListExists Then
|
||||||
If Downloader.FilesSessionActual(False).Exists Then
|
If GetLast Then
|
||||||
f = Downloader.FilesSessionActual(False)
|
If fList.ListExists Then
|
||||||
|
f = fList(IIf(fList.Count > 1 And Downloader.FilesSessionActual(False).Exists, 1, 0))
|
||||||
|
Else
|
||||||
|
f = Downloader.FilesSessionActual(False)
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
f = fList(0)
|
f = Downloader.FilesSessionActual(False)
|
||||||
|
End If
|
||||||
|
If f.Exists Then
|
||||||
|
x = New XmlFile(f,, False) With {.AllowSameNames = True, .XmlReadOnly = True}
|
||||||
|
x.LoadData()
|
||||||
|
If x.Count > 0 Then DataList.Clear() : DataList.ListAddList(x, lcr)
|
||||||
|
x.Dispose()
|
||||||
|
CleanDataList()
|
||||||
|
RefillList(False)
|
||||||
End If
|
End If
|
||||||
x = New XmlFile(f,, False) With {.AllowSameNames = True, .XmlReadOnly = True}
|
|
||||||
x.LoadData()
|
|
||||||
If x.Count > 0 Then DataList.Clear() : DataList.ListAddList(x, lcr)
|
|
||||||
x.Dispose()
|
|
||||||
CleanDataList()
|
|
||||||
RefillList(False)
|
|
||||||
Else
|
Else
|
||||||
m.Text = "Saved sessions not found"
|
m.Text = "Saved sessions not found"
|
||||||
MsgBoxE(m)
|
MsgBoxE(m)
|
||||||
|
|||||||
@@ -842,10 +842,7 @@ CloseResume:
|
|||||||
#End Region
|
#End Region
|
||||||
#End Region
|
#End Region
|
||||||
Private Sub BTT_LOG_Click(sender As Object, e As EventArgs) Handles BTT_LOG.Click
|
Private Sub BTT_LOG_Click(sender As Object, e As EventArgs) Handles BTT_LOG.Click
|
||||||
MyMainLOG_ShowForm(Settings.Design,,,, Sub()
|
MainFrameObj.ShowLog()
|
||||||
MainFrameObj.UpdateLogButton()
|
|
||||||
MainFrameObj.LogFormClosed()
|
|
||||||
End Sub)
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub BTT_VERSION_INFO_Click(sender As Object, e As EventArgs) Handles BTT_VERSION_INFO.Click
|
Private Sub BTT_VERSION_INFO_Click(sender As Object, e As EventArgs) Handles BTT_VERSION_INFO.Click
|
||||||
CheckVersion(True)
|
CheckVersion(True)
|
||||||
|
|||||||
@@ -70,6 +70,12 @@ Friend Class MainFrameObjects : Implements INotificator
|
|||||||
Friend Function GetUserListProvider(ByVal WithCollections As Boolean) As IFormatProvider
|
Friend Function GetUserListProvider(ByVal WithCollections As Boolean) As IFormatProvider
|
||||||
Return MF.GetUserListProvider(WithCollections)
|
Return MF.GetUserListProvider(WithCollections)
|
||||||
End Function
|
End Function
|
||||||
|
Friend Sub ShowLog()
|
||||||
|
MyMainLOG_ShowForm(Settings.Design,,,, Sub()
|
||||||
|
UpdateLogButton()
|
||||||
|
LogFormClosed()
|
||||||
|
End Sub)
|
||||||
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
#Region "Notifications"
|
#Region "Notifications"
|
||||||
Private Sub INotificator_ShowNotification(ByVal Text As String, ByVal Image As SFile) Implements INotificator.ShowNotification
|
Private Sub INotificator_ShowNotification(ByVal Text As String, ByVal Image As SFile) Implements INotificator.ShowNotification
|
||||||
@@ -93,6 +99,7 @@ Friend Class MainFrameObjects : Implements INotificator
|
|||||||
Case $"{NotificationInternalKey}_{NotifyObj.Channels}" : MF.MyChannels.FormShowS()
|
Case $"{NotificationInternalKey}_{NotifyObj.Channels}" : MF.MyChannels.FormShowS()
|
||||||
Case $"{NotificationInternalKey}_{NotifyObj.SavedPosts}" : MF.MySavedPosts.FormShowS()
|
Case $"{NotificationInternalKey}_{NotifyObj.SavedPosts}" : MF.MySavedPosts.FormShowS()
|
||||||
Case $"{NotificationInternalKey}_{NotifyObj.STDownloader}" : VideoDownloader.FormShowS()
|
Case $"{NotificationInternalKey}_{NotifyObj.STDownloader}" : VideoDownloader.FormShowS()
|
||||||
|
Case $"{NotificationInternalKey}_{NotifyObj.LOG}" : ShowLog()
|
||||||
Case Else : Focus(True)
|
Case Else : Focus(True)
|
||||||
End Select
|
End Select
|
||||||
ElseIf Settings.Automation Is Nothing OrElse Not Settings.Automation.NotificationClicked(Key, found, activateForm) Then
|
ElseIf Settings.Automation Is Nothing OrElse Not Settings.Automation.NotificationClicked(Key, found, activateForm) Then
|
||||||
|
|||||||
Reference in New Issue
Block a user