Skip to content

Commit

Permalink
Merge branch 'restart-after-import-settings'
Browse files Browse the repository at this point in the history
  • Loading branch information
theotime2005 committed Dec 23, 2024
2 parents 9cc2475 + 5737cc7 commit 8db2d25
Show file tree
Hide file tree
Showing 55 changed files with 146,602 additions and 144,219 deletions.
12 changes: 5 additions & 7 deletions bnote/apps/fman/file_manager_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2733,7 +2733,7 @@ def __activate_child(self, read_only=False):
self._current_dialog = ui.UiMessageDialogBox(
name=_("warning"),
message=_(
"this file will be replace the existing settings file, do you want to continue?"
"this file will be replace the existing settings file, do you want to continue? B;note will be restarted."
),
buttons=[
ui.UiButton(name=_("&yes"), action=self.__import_settings),
Expand Down Expand Up @@ -2821,12 +2821,10 @@ def __import_settings(self):
action=self._exec_cancel_dialog,
)
return
self._current_dialog = ui.UiInfoDialogBox(
message=_("imported settings."), action=self._exec_cancel_dialog
)
# for section, section_data in Settings().data.items():
# for key in section_data:
# self._put_in_function_queue(FunctionId.FUNCTION_SETTINGS_CHANGE, **{'section': section, 'key': key})
# Restart bnote
self._current_dialog = ui.UiInfoDialogBox(message=_("restarting..."))
time.sleep(1.0)
self._put_in_function_queue(FunctionId.ASK_TERMINATE_BNOTE_AND_RESTART_SERVICE)

def __activate_parent(self, *args, **kwargs):
# User must stay in his user space.
Expand Down
14 changes: 7 additions & 7 deletions bnote/apps/settings/settings_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3539,7 +3539,9 @@ def _exec_valid_import_settings(self):
path = ui_files.get_extra_parameters()[ui_files.get_index()]
self._current_dialog = ui.UiMessageDialogBox(
name=_("warning"),
message=_("this file will be replace the existing settings file. Do you want to continue?"),
message=_(
"this file will be replace the existing settings file, do you want to continue? B;note will be restarted."
),
buttons=[
ui.UiButton(name=_("&yes"), action=self._exec_yes_import, action_param={'path': path}),
ui.UiButton(name=_("&no"), action=self._exec_cancel_dialog),
Expand All @@ -3555,9 +3557,7 @@ def _exec_yes_import(self, path):
message=_("failed to import the file, check the source and try again."),
action=self._exec_cancel_dialog)
return
for section, section_data in Settings().data.items():
for key in section_data:
self._put_in_function_queue(
FunctionId.FUNCTION_SETTINGS_CHANGE,
**{"section": section, "key": key},
)
# Restart bnote
self._current_dialog = ui.UiInfoDialogBox(message=_("restarting..."))
time.sleep(1.0)
self._put_in_function_queue(FunctionId.ASK_TERMINATE_BNOTE_AND_RESTART_SERVICE)
3,233 changes: 1,624 additions & 1,609 deletions bnote/translation/bnote.pot

Large diffs are not rendered by default.

3,233 changes: 1,624 additions & 1,609 deletions bnote/translation/bnote_af_ZA.po

Large diffs are not rendered by default.

5,935 changes: 3,000 additions & 2,935 deletions bnote/translation/bnote_af_ZA.po~

Large diffs are not rendered by default.

3,245 changes: 1,631 additions & 1,614 deletions bnote/translation/bnote_ar_LB.po

Large diffs are not rendered by default.

8,053 changes: 4,063 additions & 3,990 deletions bnote/translation/bnote_ar_LB.po~

Large diffs are not rendered by default.

3,245 changes: 1,631 additions & 1,614 deletions bnote/translation/bnote_bg_BG.po

Large diffs are not rendered by default.

8,013 changes: 4,043 additions & 3,970 deletions bnote/translation/bnote_bg_BG.po~

Large diffs are not rendered by default.

3,256 changes: 1,637 additions & 1,619 deletions bnote/translation/bnote_cs_CZ.po

Large diffs are not rendered by default.

8,421 changes: 4,246 additions & 4,175 deletions bnote/translation/bnote_cs_CZ.po~

Large diffs are not rendered by default.

3,233 changes: 1,624 additions & 1,609 deletions bnote/translation/bnote_de_DE.po

Large diffs are not rendered by default.

5,935 changes: 3,000 additions & 2,935 deletions bnote/translation/bnote_de_DE.po~

Large diffs are not rendered by default.

3,245 changes: 1,631 additions & 1,614 deletions bnote/translation/bnote_el_GR.po

Large diffs are not rendered by default.

8,171 changes: 4,123 additions & 4,048 deletions bnote/translation/bnote_el_GR.po~

Large diffs are not rendered by default.

3,233 changes: 1,624 additions & 1,609 deletions bnote/translation/bnote_en_GB.po

Large diffs are not rendered by default.

5,935 changes: 3,000 additions & 2,935 deletions bnote/translation/bnote_en_GB.po~

Large diffs are not rendered by default.

3,233 changes: 1,624 additions & 1,609 deletions bnote/translation/bnote_en_US.po

Large diffs are not rendered by default.

5,935 changes: 3,000 additions & 2,935 deletions bnote/translation/bnote_en_US.po~

Large diffs are not rendered by default.

3,233 changes: 1,624 additions & 1,609 deletions bnote/translation/bnote_es_ES.po

Large diffs are not rendered by default.

5,935 changes: 3,000 additions & 2,935 deletions bnote/translation/bnote_es_ES.po~

Large diffs are not rendered by default.

3,260 changes: 1,639 additions & 1,621 deletions bnote/translation/bnote_fr_FR.po

Large diffs are not rendered by default.

8,446 changes: 4,252 additions & 4,194 deletions bnote/translation/bnote_fr_FR.po~

Large diffs are not rendered by default.

3,254 changes: 1,635 additions & 1,619 deletions bnote/translation/bnote_he_IL.po

Large diffs are not rendered by default.

8,466 changes: 4,267 additions & 4,199 deletions bnote/translation/bnote_he_IL.po~

Large diffs are not rendered by default.

3,255 changes: 1,636 additions & 1,619 deletions bnote/translation/bnote_hr_HR.po

Large diffs are not rendered by default.

8,415 changes: 4,243 additions & 4,172 deletions bnote/translation/bnote_hr_HR.po~

Large diffs are not rendered by default.

3,245 changes: 1,631 additions & 1,614 deletions bnote/translation/bnote_is_IS.po

Large diffs are not rendered by default.

8,481 changes: 4,278 additions & 4,203 deletions bnote/translation/bnote_is_IS.po~

Large diffs are not rendered by default.

8,567 changes: 4,323 additions & 4,244 deletions bnote/translation/bnote_it_IT.po

Large diffs are not rendered by default.

8,539 changes: 4,319 additions & 4,220 deletions bnote/translation/bnote_it_IT.po~

Large diffs are not rendered by default.

3,245 changes: 1,631 additions & 1,614 deletions bnote/translation/bnote_nb_NO.po

Large diffs are not rendered by default.

7,863 changes: 3,968 additions & 3,895 deletions bnote/translation/bnote_nb_NO.po~

Large diffs are not rendered by default.

3,256 changes: 1,637 additions & 1,619 deletions bnote/translation/bnote_nl_BE.po

Large diffs are not rendered by default.

8,534 changes: 4,301 additions & 4,233 deletions bnote/translation/bnote_nl_BE.po~

Large diffs are not rendered by default.

3,256 changes: 1,637 additions & 1,619 deletions bnote/translation/bnote_nl_NL.po

Large diffs are not rendered by default.

8,534 changes: 4,301 additions & 4,233 deletions bnote/translation/bnote_nl_NL.po~

Large diffs are not rendered by default.

3,233 changes: 1,624 additions & 1,609 deletions bnote/translation/bnote_pl_PL.po

Large diffs are not rendered by default.

5,935 changes: 3,000 additions & 2,935 deletions bnote/translation/bnote_pl_PL.po~

Large diffs are not rendered by default.

3,252 changes: 1,638 additions & 1,614 deletions bnote/translation/bnote_pt_PT.po

Large diffs are not rendered by default.

8,621 changes: 4,348 additions & 4,273 deletions bnote/translation/bnote_pt_PT.po~

Large diffs are not rendered by default.

8,431 changes: 4,254 additions & 4,177 deletions bnote/translation/bnote_sk_SK.po

Large diffs are not rendered by default.

8,421 changes: 4,246 additions & 4,175 deletions bnote/translation/bnote_sk_SK.po~

Large diffs are not rendered by default.

3,245 changes: 1,631 additions & 1,614 deletions bnote/translation/bnote_sl_SI.po

Large diffs are not rendered by default.

7,905 changes: 3,989 additions & 3,916 deletions bnote/translation/bnote_sl_SI.po~

Large diffs are not rendered by default.

3,245 changes: 1,631 additions & 1,614 deletions bnote/translation/bnote_sv_SE.po

Large diffs are not rendered by default.

8,497 changes: 4,286 additions & 4,211 deletions bnote/translation/bnote_sv_SE.po~

Large diffs are not rendered by default.

3,233 changes: 1,624 additions & 1,609 deletions bnote/translation/bnote_sw_KE.po

Large diffs are not rendered by default.

5,935 changes: 3,000 additions & 2,935 deletions bnote/translation/bnote_sw_KE.po~

Large diffs are not rendered by default.

3,233 changes: 1,624 additions & 1,609 deletions bnote/translation/bnote_xh_ZA.po

Large diffs are not rendered by default.

5,935 changes: 3,000 additions & 2,935 deletions bnote/translation/bnote_xh_ZA.po~

Large diffs are not rendered by default.

3,233 changes: 1,624 additions & 1,609 deletions bnote/translation/bnote_zh_TW.po

Large diffs are not rendered by default.

5,935 changes: 3,000 additions & 2,935 deletions bnote/translation/bnote_zh_TW.po~

Large diffs are not rendered by default.

3,233 changes: 1,624 additions & 1,609 deletions bnote/translation/bnote_zu_ZA.po

Large diffs are not rendered by default.

5,935 changes: 3,000 additions & 2,935 deletions bnote/translation/bnote_zu_ZA.po~

Large diffs are not rendered by default.

0 comments on commit 8db2d25

Please sign in to comment.