mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Remove duplicated code
This commit is contained in:
parent
034130555e
commit
fad6211789
16 changed files with 42 additions and 262 deletions
|
@ -96,16 +96,8 @@ downloadDialog_forWait(NULL)
|
|||
this, SLOT(setActiveSubWindow(QWidget*)));
|
||||
|
||||
MaxRecentFiles=MAX_RECENT;
|
||||
Theme=getTheme();
|
||||
QSettings settings("companion", "companion");
|
||||
int theme_set=settings.value("theme", 1).toInt();
|
||||
switch(theme_set) {
|
||||
case 0:
|
||||
Theme="classic";
|
||||
break;
|
||||
default:
|
||||
Theme="monochrome";
|
||||
break;
|
||||
}
|
||||
int icon_size=settings.value("icon_size", 1).toInt();
|
||||
switch (icon_size) {
|
||||
case 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue