mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
Move Windows libs to libs/windows
This commit is contained in:
parent
3975aaceb2
commit
3a692c94a5
684 changed files with 4 additions and 1 deletions
14
libs/win/jaraco/windows/shell.py
Normal file
14
libs/win/jaraco/windows/shell.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from .api import shell
|
||||
|
||||
|
||||
def get_recycle_bin_confirm():
|
||||
settings = shell.SHELLSTATE()
|
||||
shell.SHGetSetSettings(settings, shell.SSF_NOCONFIRMRECYCLE, False)
|
||||
return not settings.no_confirm_recycle
|
||||
|
||||
|
||||
def set_recycle_bin_confirm(confirm=False):
|
||||
settings = shell.SHELLSTATE()
|
||||
settings.no_confirm_recycle = not confirm
|
||||
shell.SHGetSetSettings(settings, shell.SSF_NOCONFIRMRECYCLE, True)
|
||||
# cross fingers and hope it worked
|
Loading…
Add table
Add a link
Reference in a new issue