Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Python Briar Wrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
Python Briar Wrapper
Commits
4b01e57c
Commit
4b01e57c
authored
5 years ago
by
Nico
Browse files
Options
Downloads
Patches
Plain Diff
Pix pylint with unused imports and method access modifier
parent
cb954543
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/briar/gtk/containers/add_contact.py
+2
-2
2 additions, 2 deletions
src/briar/gtk/containers/add_contact.py
src/briar/gtk/window.py
+3
-3
3 additions, 3 deletions
src/briar/gtk/window.py
with
5 additions
and
5 deletions
src/briar/gtk/containers/add_contact.py
+
2
−
2
View file @
4b01e57c
...
...
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename: LICENSE.md
from
gi.repository
import
GLib
,
Gtk
from
gi.repository
import
GLib
from
briar.api.models.contacts
import
Contacts
from
briar.gtk.container
import
Container
...
...
@@ -40,4 +40,4 @@ class AddContactContainer(Container):
alias
=
self
.
builder
.
get_object
(
"
alias_entry
"
).
get_text
()
contacts
=
Contacts
(
self
.
_api
)
contacts
.
add_pending
(
their_link
,
alias
)
GLib
.
idle_add
(
APP
().
window
.
_
back_to_main
,
None
)
GLib
.
idle_add
(
APP
().
window
.
back_to_main
,
None
)
This diff is collapsed.
Click to expand it.
src/briar/gtk/window.py
+
3
−
3
View file @
4b01e57c
...
...
@@ -86,7 +86,7 @@ class Window(Gtk.ApplicationWindow):
self
.
_container
=
AddContactContainer
()
self
.
_container
.
show
()
self
.
_grid
.
add
(
self
.
_container
)
self
.
_toolbar
.
show_back_button
(
True
,
self
.
_
back_to_main
)
self
.
_toolbar
.
show_back_button
(
True
,
self
.
back_to_main
)
self
.
_toolbar
.
show_add_contact_button
(
False
)
def
open_private_chat
(
self
,
contact_id
):
...
...
@@ -98,11 +98,11 @@ class Window(Gtk.ApplicationWindow):
self
.
_container
=
ChatContainer
(
contact_id
)
self
.
_container
.
show
()
self
.
_grid
.
add
(
self
.
_container
)
self
.
_toolbar
.
show_back_button
(
True
,
self
.
_
back_to_main
)
self
.
_toolbar
.
show_back_button
(
True
,
self
.
back_to_main
)
self
.
_toolbar
.
show_add_contact_button
(
False
)
# pylint: disable=unused-argument
def
_
back_to_main
(
self
,
widget
):
def
back_to_main
(
self
,
widget
):
self
.
_grid
.
destroy
()
self
.
_setup_grid
()
self
.
_toolbar
.
show_back_button
(
False
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment