Skip to content

Commit

Permalink
toggling 'only common formats' on/off now reloads the formats
Browse files Browse the repository at this point in the history
  • Loading branch information
l-koehler committed Jan 3, 2024
1 parent 93904a9 commit bf26b58
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ffconverter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# version
__major__ = 2
__minor__ = 0
__patch__ = 1
__patch__ = 2
__prerelease__ = "" # alpha, beta, rc etc.

# package information
Expand Down
1 change: 1 addition & 0 deletions ffconverter/dynamictab.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def __init__(self, parent):

# default to only common formats
self.commonformatQChB.setChecked(True)
self.commonformatQChB.stateChanged.connect(parent.filesList_update)

"""
This function is different from the other fill_extension_combobox functions,
Expand Down
5 changes: 3 additions & 2 deletions ffconverter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,12 @@ def get_all_conversions(get_conv_for_ext = False, ext = ["",""], missing = []):
if len(line_args) < 3 or set(line_args[0]) <= set(f'{string.ascii_uppercase}*-'):
continue
file_format, module, rw_status = line_args[:3]
if module in ['BRAILLE', 'TXT', 'PDF']:
if module in ['BRAILLE', 'TXT']:
continue

if "r" in rw_status:
in_formats.append(file_format)
if module not in ['PDF']: # the program will break trying to read some PDFs
in_formats.append(file_format)
if "w" in rw_status:
out_formats.append(file_format)
magick_conversions = [in_formats, out_formats]
Expand Down

0 comments on commit bf26b58

Please sign in to comment.