mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: make qPref::cloud_status the only version of the enum
add enum to qPref and remove elsewhere update source core to reference qPref. the enum cannot be in pref.h because it is to be used in qml and Q_ENUM need the enum to be defined as part of the class Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
7103f36c7c
commit
8d66633fe7
14 changed files with 90 additions and 95 deletions
|
@ -442,8 +442,8 @@ void MainWindow::on_actionDiveSiteEdit_triggered() {
|
|||
|
||||
void MainWindow::enableDisableCloudActions()
|
||||
{
|
||||
ui.actionCloudstorageopen->setEnabled(prefs.cloud_verification_status == CS_VERIFIED);
|
||||
ui.actionCloudstoragesave->setEnabled(prefs.cloud_verification_status == CS_VERIFIED);
|
||||
ui.actionCloudstorageopen->setEnabled(prefs.cloud_verification_status == qPref::CS_VERIFIED);
|
||||
ui.actionCloudstoragesave->setEnabled(prefs.cloud_verification_status == qPref::CS_VERIFIED);
|
||||
}
|
||||
|
||||
PlannerDetails *MainWindow::plannerDetails() const {
|
||||
|
@ -751,7 +751,7 @@ void MainWindow::closeCurrentFile()
|
|||
|
||||
void MainWindow::updateCloudOnlineStatus()
|
||||
{
|
||||
bool is_cloud = existing_filename && prefs.cloud_git_url && prefs.cloud_verification_status == CS_VERIFIED &&
|
||||
bool is_cloud = existing_filename && prefs.cloud_git_url && prefs.cloud_verification_status == qPref::CS_VERIFIED &&
|
||||
strstr(existing_filename, prefs.cloud_git_url);
|
||||
ui.actionCloudOnline->setEnabled(is_cloud);
|
||||
ui.actionCloudOnline->setChecked(is_cloud && !prefs.git_local_only);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue