Skip to content

Commit

Permalink
Included a built-in script that adds a refresh view button.
Browse files Browse the repository at this point in the history
It's the same as hitting F5, it can be disabled in the preferences.
  • Loading branch information
maforget committed Jan 27, 2025
1 parent 5a55b31 commit 5a3cc15
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Binary file added ComicRack/Output/Scripts/Refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions ComicRack/Output/Scripts/RefreshView.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import clr

clr.AddReferenceByPartialName('ComicRack.Engine')
clr.AddReferenceByPartialName('cYo.Common.Windows')

from cYo.Common.Windows.Forms import FormUtility
from cYo.Projects.ComicRack.Engine import IRefreshDisplay

#@Name Refresh View
#@Key RefreshView
#@Image Refresh.png
#@Hook Books
def RefreshDisplay(books):
FormUtility.FindActiveService[IRefreshDisplay]().RefreshDisplay()

0 comments on commit 5a3cc15

Please sign in to comment.