MCPcopy Create free account
hub / github.com/Project-LemonLime/Project_LemonLime / whenThemeDelete

Method whenThemeDelete

src/visualmainsettings.cpp:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void VisualMainSettings::whenThemeDelete() {
81 if (editSettings->getColorThemeList().size() <= 1)
82 return;
83 int index = ui->themeComboBox->currentIndex();
84 editSettings->deleteColorTheme(index);
85 if (index >= editSettings->getColorThemeList().size())
86 index--;
87 ui->themeComboBox->setCurrentIndex(index);
88 resetEditSettings(editSettings);
89}
90
91VisualMainSettings::~VisualMainSettings() { delete ui; }

Callers

nothing calls this directly

Calls 1

deleteColorThemeMethod · 0.80

Tested by

no test coverage detected