Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Pika Backup
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
36
Issues
36
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
World
Pika Backup
Commits
d265ee63
Commit
d265ee63
authored
Aug 16, 2020
by
Sophie Herold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some glitches in repo creation
Closes
#18
parent
6706e915
Pipeline
#204914
passed with stage
in 19 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/ui/new_backup.rs
src/ui/new_backup.rs
+4
-1
No files found.
src/ui/new_backup.rs
View file @
d265ee63
...
...
@@ -97,7 +97,7 @@ fn load_available_mounts_and_repos(ui: Rc<builder::NewBackup>) {
fn
load_mount
(
ui
:
Rc
<
builder
::
NewBackup
>
,
mount
:
gio
::
Mount
)
{
if
let
Some
(
mount_point
)
=
mount
.get_root
()
.unwrap
()
.get_path
()
{
add_mount
(
&
ui
.init_repo_list
(),
&
mount
,
Some
(
&
mount_point
)
);
add_mount
(
&
ui
.init_repo_list
(),
&
mount
,
None
);
ui
::
utils
::
async_react
(
"check_mount_for_repos"
,
move
||
{
...
...
@@ -181,6 +181,8 @@ fn init_repo_list_activated(row: >k::ListBoxRow, ui: &builder::NewBackup) {
if
name
!=
"-init-local"
{
trace!
(
"Setting {} as init_path"
,
&
name
);
ui
.init_path
()
.set_current_folder_uri
(
&
name
);
}
else
{
ui
.init_path
()
.grab_focus
();
}
}
ui
.password_quality
()
.set_value
(
0.0
);
...
...
@@ -323,6 +325,7 @@ fn add_mount(list: >k::ListBox, mount: &gio::Mount, repo: Option<&std::path::P
if
let
Some
(
mount_path
)
=
root
.get_path
()
{
if
let
Some
(
repo_path
)
=
repo
{
row
.set_widget_name
(
&
gio
::
File
::
new_for_path
(
repo_path
)
.get_uri
());
if
let
Ok
(
suffix
)
=
repo_path
.strip_prefix
(
mount_path
)
{
if
!
suffix
.to_string_lossy
()
.is_empty
()
{
label1
.push_str
(
&
format!
(
" / {}"
,
suffix
.to_string_lossy
()));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment