mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Utility: Compile on Windows again
Theme moc files belong with libowncloud
This commit is contained in:
parent
fff795146e
commit
751d7deda6
@ -81,6 +81,8 @@ set(libsync_HEADERS
|
||||
mirall/folderwatcher.h
|
||||
mirall/owncloudfolder.h
|
||||
mirall/csyncthread.h
|
||||
mirall/theme.h
|
||||
mirall/owncloudtheme.h
|
||||
mirall/owncloudinfo.h
|
||||
mirall/credentialstore.h
|
||||
mirall/logger.h
|
||||
@ -175,7 +177,6 @@ set(mirall_HEADERS
|
||||
mirall/generalsettings.h
|
||||
mirall/accountsettings.h
|
||||
mirall/ignorelisteditor.h
|
||||
mirall/theme.h
|
||||
)
|
||||
|
||||
if( UNIX AND NOT APPLE)
|
||||
|
||||
@ -21,6 +21,7 @@ namespace Mirall {
|
||||
|
||||
class ownCloudTheme : public Theme
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ownCloudTheme();
|
||||
|
||||
|
||||
@ -164,7 +164,7 @@ static const char runPathC[] = "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\
|
||||
bool Utility::hasLaunchOnStartup(const QString &appName)
|
||||
{
|
||||
#if defined(Q_OS_WIN)
|
||||
QString runPath(QLatin1String(runPathC));
|
||||
QString runPath = QLatin1String(runPathC);
|
||||
QSettings settings(runPath, QSettings::NativeFormat);
|
||||
return settings.contains(appName);
|
||||
#elif defined(Q_OS_MAC)
|
||||
@ -182,7 +182,8 @@ namespace {
|
||||
void Utility::setLaunchOnStartup(const QString &appName, const QString& guiName, bool enable)
|
||||
{
|
||||
#if defined(Q_OS_WIN)
|
||||
QString runPath(QLatin1String(runPathC));
|
||||
Q_UNUSED(guiName)
|
||||
QString runPath = QLatin1String(runPathC);
|
||||
QSettings settings(runPath, QSettings::NativeFormat);
|
||||
if (enable) {
|
||||
settings.setValue(appName, QCoreApplication::applicationFilePath().replace('/','\\'));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user