Commit d8226f61 authored by Sophie Herold's avatar Sophie Herold 🔨

Make backup suggested action

Closes #27
parent b2473f5a
[package]
name = "pika-backup"
description = "Simple backups based on borg"
version = "0.1.0-rc.2"
version = "0.1.0"
authors = ["Sophie Herold <sophie@hemio.de>"]
homepage = "https://gitlab.gnome.org/sophie-h/pika-backup"
edition = "2018"
[dependencies]
dbus = "0.8"
chrono = { version = "0.4", features = ["serde"] }
chrono-humanize = "0.0.11"
ctrlc = { version = "3.1", features = ["termination"] }
dbus = "0.8"
gettext-rs = { version = "0.4", features = ["gettext-system"] }
humansize = "1.1"
matches = "0.1"
......@@ -24,7 +24,7 @@ arc-swap = "0.4"
crossbeam-channel = "0.4"
enclose = "1.1"
once_cell = "1.3"
quick-error = "1.2"
quick-error = "2.0"
zeroize = "1.1"
# logging
......
......@@ -20,7 +20,7 @@
Currently, scheduled backups support are not supported. Excluding files from a backup via regular expressions and alike is not implemented yet. Remote backup locations must support SSH and need to have a borg-backup binary installed.
</p>
![Pika Pile Setup](/uploads/596347a2e99be37c3f8a035b75cea8ea/pika-pile-1.png)
![Pika Backup Setup](/uploads/596347a2e99be37c3f8a035b75cea8ea/pika-pile-1.png)
## Build
......
......@@ -1425,7 +1425,7 @@ This might take a while.</property>
</object>
</child>
<child>
<object class="GtkMenuButton" id="main_menu">
<object class="GtkMenuButton">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
......@@ -1470,6 +1470,9 @@ This might take a while.</property>
<property name="no-show-all">True</property>
<property name="halign">center</property>
<property name="valign">start</property>
<style>
<class name="suggested-action"/>
</style>
</object>
<packing>
<property name="position">3</property>
......
......@@ -231,10 +231,6 @@ impl Main {
self.get("main_backups")
}
pub fn main_menu(&self) -> gtk::MenuButton {
self.get("main_menu")
}
pub fn main_menu_popover(&self) -> gtk::PopoverMenu {
self.get("main_menu_popover")
}
......
......@@ -17,20 +17,17 @@ pub fn main() {
match &page[..] {
"main" => {
main_ui().previous().hide();
main_ui().main_menu().show();
main_ui().detail_menu().hide();
main_ui().backup_run().hide();
refresh();
}
"archives" => {
main_ui().previous().show();
main_ui().main_menu().hide();
main_ui().detail_menu().hide();
main_ui().backup_run().hide();
}
_ => {
main_ui().previous().show();
main_ui().main_menu().hide();
main_ui().detail_menu().show();
main_ui().backup_run().show();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment