mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
Remove callback arg from App.createBuffer
This commit is contained in:
parent
bf76eaa669
commit
e28769216a
@ -224,18 +224,15 @@ export default class App extends Component {
|
||||
}, callback);
|
||||
}
|
||||
|
||||
createBuffer(serverID, name, callback) {
|
||||
createBuffer(serverID, name) {
|
||||
var id = null;
|
||||
this.setState((state) => {
|
||||
var client = this.clients.get(serverID);
|
||||
var updated;
|
||||
[id, updated] = State.createBuffer(state, name, serverID, client);
|
||||
return updated;
|
||||
}, () => {
|
||||
if (callback) {
|
||||
callback(id);
|
||||
}
|
||||
});
|
||||
return id;
|
||||
}
|
||||
|
||||
switchBuffer(id) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user