Skip to content

Commit

Permalink
Merge pull request #224 from Huluti/recursive-setting
Browse files Browse the repository at this point in the history
Add a recursive setting - fix #219
  • Loading branch information
Huluti committed May 7, 2024
2 parents b05e904 + 464f025 commit a61e754
Show file tree
Hide file tree
Showing 11 changed files with 153 additions and 101 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.

## UNRELEASED
### Added
- Add a "Recursive Compression" setting.
- Add Bulgarian translation. Thank's to @twlvnn.
- Add Hindi translation. Thank's to @Scrambled777.

Expand All @@ -12,6 +13,7 @@ All notable changes to this project will be documented in this file.

### Fixed
- Fix opening files with "Open With...". Thank's to @ARAKHN1D.
- Fix DnD with nested folders (recursive).

## 1.9.1 - 2024-04-12
### Fixed
Expand Down
5 changes: 5 additions & 0 deletions data/com.github.huluti.Curtail.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
<summary>Save into a new file</summary>
<description>Save the compressed image into a new file.</description>
</key>
<key type="b" name="recursive">
<default>true</default>
<summary>Enable recursive compression in folders</summary>
<description>This setting enable compression in a recursive way in folders.</description>
</key>
<key type="b" name="metadata">
<default>true</default>
<summary>Keep metadata</summary>
Expand Down
2 changes: 1 addition & 1 deletion data/ui/menu.ui
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<menu id="window-menu">
<section>
<item>
<attribute name="label" translatable="yes">Bulk Compress Directory (Recursive)</attribute>
<attribute name="label" translatable="yes">Bulk Compress Directory</attribute>
<attribute name="action">win.convert-dir</attribute>
</item>
<item>
Expand Down
16 changes: 14 additions & 2 deletions data/ui/preferences.ui
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@
<property name="title" translatable="yes">New File Suffix</property>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Recursive Compression</property>
<property name="subtitle" translatable="yes">Enable or disable compression through subdirectories</property>
<property name="activatable-widget">toggle_recursive</property>
<child>
<object class="GtkSwitch" id="toggle_recursive">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Keep Metadata</property>
Expand Down Expand Up @@ -76,8 +88,8 @@
</child>
<child>
<object class="AdwPreferencesPage">
<property name="name">compression</property>
<property name="title" translatable="yes">Compression</property>
<property name="name">formats</property>
<property name="title" translatable="yes">Formats</property>
<property name="icon-name">image-x-generic-symbolic</property>
<child>
<object class="AdwPreferencesGroup">
Expand Down
Loading

0 comments on commit a61e754

Please sign in to comment.