mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Store GUI customizations at system place.
This commit is contained in:
parent
64e83cb287
commit
0c89dd9555
3 changed files with 11 additions and 2 deletions
|
@ -35,6 +35,9 @@
|
|||
#define DEFAULT_LOCAL_POLL_INTERVAL 10000 // default local poll time in milliseconds
|
||||
#define DEFAULT_POLL_TIMER_EXEED 10
|
||||
|
||||
#define OC_ORGANIZATION QLatin1String("ownCloud")
|
||||
#define OC_APPLICATION QLatin1String("ownCloudClient")
|
||||
|
||||
namespace Mirall {
|
||||
|
||||
QString MirallConfigFile::_passwd;
|
||||
|
@ -446,7 +449,10 @@ QVariant MirallConfigFile::customMedia( customMediaType type )
|
|||
}
|
||||
|
||||
if( !key.isEmpty() ) {
|
||||
QSettings settings( configFile(), QSettings::IniFormat );
|
||||
QSettings settings( QSettings::IniFormat, QSettings::SystemScope, OC_ORGANIZATION, OC_APPLICATION );
|
||||
QString cfg = settings.fileName();
|
||||
qDebug() << "Trying to read config ini file at " << cfg;
|
||||
|
||||
settings.setIniCodec( "UTF-8" );
|
||||
settings.beginGroup(QLatin1String("GUICustomize"));
|
||||
QString val = settings.value( key, QString() ).toString();
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<widget class="QLabel" name="serverAddressLabel">
|
||||
<property name="text">
|
||||
<string>Server &address:</string>
|
||||
</property>
|
||||
|
|
|
@ -102,6 +102,9 @@ void OwncloudSetupPage::setupCustomization()
|
|||
setOCUrl( fixUrl );
|
||||
_ui.leUrl->setEnabled( false );
|
||||
_ui.cbSecureConnect->hide();
|
||||
_ui.leUrl->hide();
|
||||
_ui.protocolLabel->hide();
|
||||
_ui.serverAddressLabel->hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue