Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor 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
mesonium
gajim
Commits
221a5cd8
Commit
221a5cd8
authored
4 months ago
by
Philipp Hörist
Committed by
mesonium
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
refactor: Fix Migration and program name
parent
2f44d0fb
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
gajim/gtk/application.py
+1
-3
1 addition, 3 deletions
gajim/gtk/application.py
gajim/gtk/db_migration.py
+4
-3
4 additions, 3 deletions
gajim/gtk/db_migration.py
with
5 additions
and
6 deletions
gajim/gtk/application.py
+
1
−
3
View file @
221a5cd8
...
...
@@ -194,9 +194,7 @@ def __init__(self):
self
.
interface
=
None
GLib
.
set_prgname
(
app
.
get_default_app_id
())
if
GLib
.
get_application_name
()
!=
'
Gajim
'
:
GLib
.
set_application_name
(
'
Gajim
'
)
GLib
.
set_application_name
(
'
Gajim
'
)
@staticmethod
def
_get_remaining_entry
():
...
...
This diff is collapsed.
Click to expand it.
gajim/gtk/db_migration.py
+
4
−
3
View file @
221a5cd8
...
...
@@ -9,6 +9,7 @@
from
io
import
StringIO
from
gi.repository
import
Gtk
from
gi.repository
import
GLib
from
gajim.common
import
app
from
gajim.common.events
import
DBMigrationError
...
...
@@ -66,9 +67,9 @@ def _on_progress(self, event: DBMigrationProgress) -> None:
self
.
_ui
.
stack
.
set_visible_child_name
(
'
progress-page
'
)
self
.
_ui
.
status_label
.
set_text
(
f
'
{
event
.
value
}
%
'
)
# TODO GTK4
while
Gtk
.
events_
pending
():
Gtk
.
main_
iteration
()
context
=
GLib
.
MainContext
.
default
()
while
context
.
pending
():
context
.
iteration
(
may_block
=
False
)
def
_on_finished
(
self
,
event
:
DBMigrationFinished
)
->
None
:
self
.
_ui
.
stack
.
set_visible_child_name
(
'
success-page
'
)
...
...
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