Skip to content

Commit c1dbbd5

Browse files
committed
Remove unnecessary strings from GSchema file and add minor changes in archive.py
1 parent 092775f commit c1dbbd5

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

data/io.github.vikdevelop.SaveDesktop.gschema.xml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,35 @@
1111
</key>
1212
<key name="save-icons" type="b">
1313
<default>true</default>
14-
<summary>Save icons (option)</summary>
14+
<summary>Save icons</summary>
1515
</key>
1616
<key name="save-themes" type="b">
1717
<default>true</default>
18-
<summary>Save themes (option)</summary>
18+
<summary>Save themes</summary>
1919
</key>
2020
<key name="save-fonts" type="b">
2121
<default>true</default>
22-
<summary>Save fonts (option)</summary>
22+
<summary>Save fonts</summary>
2323
</key>
2424
<key name="save-backgrounds" type="b">
2525
<default>true</default>
26-
<summary>Save backgrounds (option)</summary>
26+
<summary>Save backgrounds</summary>
2727
</key>
2828
<key name="save-extensions" type="b">
2929
<default>true</default>
30-
<summary>Save GNOME extensions (option)</summary>
30+
<summary>Save GNOME, Cinnamon, or Plasma extensions</summary>
3131
</key>
3232
<key name="save-desktop-folder" type="b">
3333
<default>false</default>
34-
<summary>Save the user desktop folder (option)</summary>
34+
<summary>Save the user desktop folder</summary>
3535
</key>
3636
<key name="save-installed-flatpaks" type="b">
3737
<default>true</default>
38-
<summary>Save installed Flatpak apps (option)</summary>
38+
<summary>Save installed Flatpak apps</summary>
3939
</key>
4040
<key name="save-flatpak-data" type="b">
4141
<default>false</default>
42-
<summary>Save data of installed Flatpak apps (row)</summary>
42+
<summary>Save data of installed Flatpak apps</summary>
4343
</key>
4444
<key name="disabled-flatpak-apps-data" type="as">
4545
<default>[]</default>
@@ -69,31 +69,26 @@
6969
</key>
7070
<key name="enable-encryption" type="b">
7171
<default>false</default>
72-
<summary>Enable/Disable encryption of the configuration archives in the manually mode</summary>
72+
<summary>Enable or disable encryption of the configuration archives in the manually mode</summary>
7373
</key>
7474
<key name="save-without-archive" type="b">
7575
<default>false</default>
7676
<summary>Disable creating an archive in the manual saving mode</summary>
7777
</key>
7878
<key name="file-for-syncing" type="s">
7979
<default>''</default>
80-
<summary>File for synchronization with other computers in the network</summary>
80+
<summary>Folder (originally file) for synchronization with other computers in the network</summary>
8181
</key>
8282
<key name="periodic-import" type="s">
8383
<choices>
8484
<choice value="Never2"/>
8585
<choice value="Daily2"/>
8686
<choice value="Weekly2"/>
8787
<choice value="Monthly2"/>
88-
<choice value="Manually2"/>
8988
</choices>
9089
<default>"Never2"</default>
9190
<summary>Periodic import</summary>
9291
</key>
93-
<key name="manually-sync" type="b">
94-
<default>false</default>
95-
<summary>Manually sync</summary>
96-
</key>
9792
<key name="bidirectional-sync" type="b">
9893
<default>true</default>
9994
<summary>Enable/Disable bidirectional synchronization</summary>

src/core/archive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def start_saving(self):
4646

4747
# In the periodic saving mode, it's not allowed to save the
4848
# configuration without creating the archive
49-
if settings["save-without-archive"] and not args.create == settings["periodic-saving-folder"]:
49+
if settings["save-without-archive"] and f'{settings["periodic-saving-folder"]}' not in args.create:
5050
self._copy_config_to_folder()
5151
else:
5252
self._create_archive()

0 commit comments

Comments
 (0)