Skip to content

Commit

Permalink
Improve meta data, correctly wire up sync now button
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Nov 26, 2023
1 parent 4c55269 commit fe2a25d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
4 changes: 2 additions & 2 deletions data/io.github.leolost2605.syncher.desktop.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Version=1.0
Type=Application

Name=Sycher
Comment=A catchy tagline
Name=Syncher
Comment=Synchronize your apps and settings
Categories=Education;ComputerScience;

Icon=io.github.leolost2605.syncher
Expand Down
16 changes: 14 additions & 2 deletions data/io.github.leolost2605.syncher.metainfo.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<id>io.github.leolost2605.syncher</id>

<name>Syncher</name>
<summary>A catchy tagline</summary>
<summary>Synchronize your apps and settings</summary>

<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
Expand All @@ -16,7 +16,19 @@

<description>
<p>
A quick summary of your app&apos;s main selling points and features. Just a couple sentences per paragraph is best.
Synchronizes your apps and settings across your devices.
</p>
<p>
Works with any cloud provider (e.g. DropBox, Google Drive, Nextcloud, WebDAV, etc.) or via a local drive like a USB-Stick.
</p>
<p>
What gets synchronized?
Flatpak apps and remotes
Most settings (It backs up your DConf settings)
</p>
<p>
What Setups are supported?
To have Syncher reach its full potential it is best used on distros that use Flatpak apps as their main way of providing applications (elementary OS, Fedora, etc.) and on Desktops that use DConf as their main way of storing configuration (Pantheon, GNOME). However if you only need the one or the other you can use Syncher on any Setup you like!
</p>
</description>

Expand Down
19 changes: 3 additions & 16 deletions src/HomeView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -101,28 +101,15 @@ public class Syncher.HomeView : Gtk.Box {
orientation = VERTICAL;
append (overlay);

var syncher_service = SyncherService.get_default ();

sync_now.clicked.connect (() => {
sync_now_stack.visible_child = preparing_sync;
get_sync_location ();
syncher_service.sync.begin ();
});

var syncher_service = SyncherService.get_default ();

syncher_service.notify["working"].connect (() => {
sync_now_stack.visible_child = sync_now;
});
}

private void get_sync_location () {
var file_chooser = new Gtk.FileChooserNative ("Choose location", (Gtk.Window) get_root (), SELECT_FOLDER, "Accept", "Cancel");
file_chooser.response.connect ((res) => {
if (res == Gtk.ResponseType.ACCEPT) {
var file = file_chooser.get_file ();
SyncherService.get_default ().sync.begin (file);
}
file_chooser.destroy ();
});

file_chooser.show ();
}
}

0 comments on commit fe2a25d

Please sign in to comment.