Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DFN2
ocs-manager
Commits
4cebee66
Commit
4cebee66
authored
Sep 12, 2019
by
azubieta
Browse files
Merge branch 'add_appupdate_ws_command' into 'master'
Restore 'later' button visibility See merge request
!10
parents
aa031688
0bf9d111
Pipeline
#1067
passed with stage
in 8 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/updaters/appupdatedialog.cpp
View file @
4cebee66
...
...
@@ -31,6 +31,7 @@ void AppUpdateDialog::showUpdateConfirmationMessage()
setWindowTitle
(
tr
(
"Pling Store Update Available"
));
ui
->
confirmationLabel
->
setText
(
tr
(
"Do you want to update now to the new Pling Store version now?"
));
ui
->
doitButton
->
setText
(
"Yes"
);
ui
->
latterButton
->
setVisible
(
true
);
disconnect
(
ui
->
doitButton
,
nullptr
,
this
,
nullptr
);
connect
(
ui
->
doitButton
,
&
QPushButton
::
released
,
this
,
&
AppUpdateDialog
::
updateRequested
);
...
...
@@ -44,6 +45,7 @@ void AppUpdateDialog::showErrorMessage(const QString &msg)
setWindowTitle
(
tr
(
"Pling Store Update Failed"
));
ui
->
confirmationLabel
->
setText
(
tr
(
"Do you want to try again?"
));
ui
->
doitButton
->
setText
(
"Yes"
);
ui
->
latterButton
->
setVisible
(
true
);
disconnect
(
ui
->
doitButton
,
nullptr
,
this
,
nullptr
);
connect
(
ui
->
doitButton
,
&
QPushButton
::
released
,
this
,
&
AppUpdateDialog
::
updateRequested
);
...
...
@@ -57,6 +59,7 @@ void AppUpdateDialog::showCompletionMessage()
setWindowTitle
(
tr
(
"Plign Store Update Completed"
));
ui
->
confirmationLabel
->
setText
(
tr
(
"Do you want to open the new version now?"
));
ui
->
doitButton
->
setText
(
"Yes"
);
ui
->
latterButton
->
setVisible
(
true
);
disconnect
(
ui
->
doitButton
,
nullptr
,
this
,
nullptr
);
connect
(
ui
->
doitButton
,
&
QPushButton
::
released
,
this
,
&
AppUpdateDialog
::
restartRequested
);
...
...
@@ -70,7 +73,7 @@ void AppUpdateDialog::showNoUpdatesMessage()
setWindowTitle
(
tr
(
"Plign Store is up to date"
));
ui
->
confirmationLabel
->
setText
(
tr
(
"No updates were found"
));
ui
->
doitButton
->
setText
(
"Ok"
);
ui
->
latterButton
->
hide
(
);
ui
->
latterButton
->
setVisible
(
false
);
disconnect
(
ui
->
doitButton
,
nullptr
,
this
,
nullptr
);
connect
(
ui
->
doitButton
,
&
QPushButton
::
released
,
this
,
&
AppUpdateDialog
::
accept
);
...
...
Write
Preview
Supports
Markdown
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