forked from j62/ctbrec
Add confirmation dialog for pause all and resume all
This commit is contained in:
parent
67cbc0cadf
commit
17f1c3aec6
|
@ -1,5 +1,8 @@
|
|||
3.8.7
|
||||
========================
|
||||
* Added support for Manyvids Live
|
||||
* no login / favorites
|
||||
* media player isn't working because of their authetication mechanism
|
||||
* Fixed bug in recorder servlet. Actions for unpin and notes were mixed up
|
||||
* Recordings now start immediately for newly added models
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ public class FollowAction extends ModelMassEditAction {
|
|||
} catch(Exception e) {
|
||||
LOG.error("Couldn't follow model {}", m, e);
|
||||
Platform.runLater(() ->
|
||||
Dialogs.showError("Couldn't follow model", "Following " + m.getName() + " failed: " + e.getMessage(), e));
|
||||
Dialogs.showError(source.getScene(), "Couldn't follow model", "Following " + m.getName() + " failed: " + e.getMessage(), e));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ public class PauseAction extends ModelMassEditAction {
|
|||
recorder.suspendRecording(m);
|
||||
} catch(Exception e) {
|
||||
Platform.runLater(() ->
|
||||
Dialogs.showError("Couldn't suspend recording of model", "Suspending recording of " + m.getName() + " failed", e));
|
||||
Dialogs.showError(source.getScene(), "Couldn't suspend recording of model", "Suspending recording of " + m.getName() + " failed", e));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ public class ResumeAction extends ModelMassEditAction {
|
|||
recorder.resumeRecording(m);
|
||||
} catch(Exception e) {
|
||||
Platform.runLater(() ->
|
||||
Dialogs.showError("Couldn't resume recording of model", "Resuming recording of " + m.getName() + " failed", e));
|
||||
Dialogs.showError(source.getScene(), "Couldn't resume recording of model", "Resuming recording of " + m.getName() + " failed", e));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ public class StartRecordingAction extends ModelMassEditAction {
|
|||
recorder.startRecording(m);
|
||||
} catch(Exception e) {
|
||||
Platform.runLater(() ->
|
||||
Dialogs.showError("Couldn't start recording", "Starting recording of " + m.getName() + " failed", e));
|
||||
Dialogs.showError(source.getScene(), "Couldn't start recording", "Starting recording of " + m.getName() + " failed", e));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -423,11 +423,17 @@ public class RecordedModelsTab extends Tab implements TabSelectionListener {
|
|||
}
|
||||
|
||||
private void pauseAll(ActionEvent evt) {
|
||||
new PauseAction(getTabPane(), recorder.getModels(), recorder).execute();
|
||||
boolean yes = Dialogs.showConfirmDialog("Pause all models", "", "Pause the recording of all models?", getTabPane().getScene());
|
||||
if (yes) {
|
||||
new PauseAction(getTabPane(), recorder.getModels(), recorder).execute();
|
||||
}
|
||||
}
|
||||
|
||||
private void resumeAll(ActionEvent evt) {
|
||||
new ResumeAction(getTabPane(), recorder.getModels(), recorder).execute();
|
||||
boolean yes = Dialogs.showConfirmDialog("Resume all models", "", "Resume the recording of all models?", getTabPane().getScene());
|
||||
if (yes) {
|
||||
new ResumeAction(getTabPane(), recorder.getModels(), recorder).execute();
|
||||
}
|
||||
}
|
||||
|
||||
void initializeUpdateService() {
|
||||
|
|
Loading…
Reference in New Issue