oh right. duplicate protection

master
zetaPRIME 2022-03-13 23:07:24 -04:00
parent f9f8391bba
commit 7fa610f4af
2 changed files with 10 additions and 13 deletions

14
notes
View File

@ -32,19 +32,11 @@ parameters {
TODO {
immediate frontburner {
multi-window accounting {
- rewrite signaling using CBOR to support file lists
- support opening multiple files at once on launch
- (if no successes, open new project window)
change %f to %F once list support is implemented
}
user-defined default template
clear song info on loading template?
revert action
clear song info on loading template?
user-defined default template
distortion effect
add ,XX support to global tempo
@ -54,6 +46,8 @@ TODO {
look into performance/timing/sync of audio engine; it's having buffer issues way more than it feels like it should
editing song info should probably be an UndoStack action
eventually swap over to actually using ffmpeg as a library >_>
buffer helper akin to what quicklevel does {

View File

@ -90,9 +90,12 @@ int main(int argc, char *argv[]) {
QFileInfo fi(e.toString());
if (!fi.exists()) continue;
auto fileName = fi.absoluteFilePath();
auto w = new Xybrid::MainWindow(nullptr, fileName);
if (w->getProject()) w->show();
else (w->deleteLater());
if (auto w = Xybrid::MainWindow::projectWindow(fileName); w) w->tryFocus();
else {
w = new Xybrid::MainWindow(nullptr, fileName);
if (w->getProject()) w->show();
else (w->deleteLater());
}
}
}
});